Nie wiem czy dobrze jest plugin napisany ale chciał bym żeby były napisy na kolor czerwony i żeby można było jej używać co 7 min. Ale nie mogę skompilować, czy to wina skryptu czy czegoś innego to ja nie wiem. Mam nadzieję że ktoś mi pomoże z tym
Pozdrawiam.
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <fakemeta>
#include <engine>
#include <colorchat>
new bool: uzyl[33] = false
#define PLUGIN "Ruletka"
#define VERSION "1.0"
#define AUTHOR "WAKACJE"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_clcmd("say /ruletka","ruletka");
register_clcmd("say_team /ruletka","ruletka");
}
public ruletka(id)
{
{
if(uzyl[id])
{
ColorChat(id, RED, "[Ruletka]^x04 Ruletke mozna uzyc raz na 5 minut");
}
else
{
uzyl[id] = true
set_task(10.0, "tensecwait",id);
ColorChat(id, RED, "[Ruletka]^x04 Trwa losowanie");
}
}
public tensecwait(id)
switch(random_num(1, 13))
{
case 1 :
{
ColorChat(id, RED,"[Ruletka]^x04 Masz 1 HP");
set_user_health(id,1);
}
case 2 :
{
ColorChat(id, RED, "[Ruletka]^x04 Dostajesz deagla.");
new deagle = give_item(id,"weapon_deagle");
cs_set_user_bpammo(id, CSW_DEAGLE, 0);
cs_set_weapon_ammo(deagle, 1);
}
case 3 :
{
ColorChat(id, RED, "[Ruletka]^x04 Masz Pecha");
}
case 4 :
{
ColorChat(id, RED, "[Ruletka]^x04 Masz 100 HP");
set_user_health(id,100);
}
case 5 :
{
ColorChat(id, RED, "[Ruletka]^x04 Dostajesz speeda.");
set_user_maxspeed(id, 1.25)
}
case 6 :
{
ColorChat(id, RED, "[Ruletka]^x04 Wygrales tarcze");
give_item(id, "weapon_shield");
}
case 7 :
{
ColorChat(id, RED, "[Ruletka]^x04 Otrzymales 100 armora");
set_user_armor (id,100);
}
case 8 :
{
ColorChat(id, RED, "[Ruletka]^x04 Otrzymales +50HP");
set_user_health(id,get_user_health(id) + 50);
}
case 9 :
{
ColorChat(id, RED, "[Ruletka]^x04 Zostajesz zabity");
user_kill(id, 1);
}
case 10 :
{
ColorChat(id, RED, "[Ruletka]^x04 Dostajesz Gravitke");
set_user_gravity (id,0.55);
}
case 11 :
{
ColorChat(id, RED, "[Ruletka]^x04 Jesteś wolniejszy");
set_user_maxspeed(id, 0.65)
}
case 12 :
{
ColorChat(id, RED, "[Ruletka]^x04 Dostajesz freeza");
give_item(id, "weapon_smokegrenade");
}
case 13 :
{
ColorChat(id, RED, "[Ruletka]^x04 Jestes czesciowo niewidzialny przez 20 sec.");
set_user_rendering(id, kRenderFxNone, 0,0,0, kRenderTransAlpha, 10)
}
}
set_task(420.0, "czekaj", _, _, _, "b");
}
public czekaj(id)
{
for(new id=1;id <33; id++)
{
uzyl[id] = false
}
@EDIT:
A i jeszcze nie działa:
-Speed
-Wolniejsze poruszanie się
-niewidzialność nie jest na czas a chciał bym żeby była na 10 sek.
To chyba na tyle
Użytkownik WAAKCJE edytował ten post 05.09.2011 17:43