07.06.2010, 16:15
Hello all
i have this
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
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;
}
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
![Cheesy](images/smilies/biggrin.png)