22.04.2009, 20:39
when i played on my server with my bro and we both tipping my godmode ... the client shows:
markus is a god ... when i tipped /god
markus is a god no more ... when another person tipped god ...o.O
...here's my command
markus is a god ... when i tipped /god
markus is a god no more ... when another person tipped god ...o.O
...here's my command
Код:
if(strcmp(cmdtext,"/god",true)==0) { if(God[playerid] == 0) { God[playerid] = 1; SendClientMessage(playerid,COLOR_GREEN,"GODMODE ON"); GetPlayerName(playerid,name5,sizeof(name5)); format(string,sizeof(string),"%s is a God",name5); SendClientMessageToAll(COLOR_BLUE,string); } else { God[playerid] = 0; SendClientMessage(playerid,COLOR_RED,"GODMODE OFF"); SetPlayerHealth(playerid, 100); format(string,sizeof(string),"%s is a God no more",name5); SendClientMessageToAll(COLOR_BLUE,string); } return 1; }