09.03.2011, 12:25
Roomeo can you read? that's not his question.
Anyway you can use something like this:
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
}