Quote:
Originally Posted by alpha500delta
Roomeo can you read? that's not his question.
Anyway you can use something like this:
pawn Код:
new IsInDM[MAX_PLAYERS] = 0; //Creating variable... if (strcmp("/deathmatch", cmdtext, true, 10) == 0) { IsInDM[playerid] = 1;//Sets the variable to 1 so he cannot leave } if (strcmp("/heal", cmdtext, true, 10) == 0) { if(IsInDM[playerid] == 1) return SendClientMessage(playerid, COLOR, "Uhm..you're in deathmatch"); SetPlayerHealth(playerid, 100);//Sets the players health to 100 if he is NOT in a DM zone }
|
hmm i thougth there was a easier way because then i have to set that IF in all my commands :S, and that would make my script to long, i have to hold it to minimum lines to make it work faster