01.07.2015, 06:54
Hi Guyz,
I need some help,i have made startevent command but when i type it in game the text i have written in pwn doesn't displays on screen please help me,this is my code
I need some help,i have made startevent command but when i type it in game the text i have written in pwn doesn't displays on screen please help me,this is my code
PHP код:
CMD:startevent(playerid,params[])
{
new ename; new eprize; new gun; new ammo; new string[128]; new estring[128]; new joinable=0;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_ERROR,"Unknown command type /cmds for the full list of commands!");
if(joinable==1) return SendClientMessage(playerid,COLOR_ERROR,"There Is Already An Event Going On.");
else if(sscanf(params,"s[128]iiii",ename,eprize,gun,ammo))
return SendClientMessage(playerid,COLOR_ERROR,"/startevent [Event Name] [Prize] [Weapon] [Ammo]");
else if(gun > 39 || gun < 0) return SendClientMessage(playerid,COLOR_ERROR,"This Weapon Can Get That Player Ban!");
else
{
format(string,128,"'%s' has been started as an event! Use /join to join the fun!",ename);
SendClientMessageToAll(COLOR_CYAN,string);
format(estring,128,"~n~~n~~b~'%s' ~w~has been started!~w~Use ~g~/join to join the fun!",ename);
GameTextForAll(estring,5000,5);
joinable=1;
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z);
}
return 1;
}