Help !! How to set Enable/Desable
#1

Hello all

i have this
pawn Код:
if(strcmp(cmdtext,"/god",true)==0)
{
SetPlayerHealth(playerid,100000);
SendClientMessage(playerid, COLOR_YELLOW, "Enabled.");
}
else
{
SetPlayerHealth(playerid,100);
SendClientMessage(playerid, COLOR_YELLOW, "Desabled.");
return 1;
}
But not work
the (Desabled) show if i type a wrong command
& /god is un wrong command
I need if you type for the first time /god
it enable the God
& in case of 2sd time -> desable
Thanks
Reply


Messages In This Thread
Help !! How to set Enable/Desable - by Yaszine - 07.06.2010, 16:15
Re: Help !! How to set Enable/Desable - by Aleksandar_Zivanovci - 07.06.2010, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)