16.11.2009, 20:39
You then use a slightly modified version
pawn Код:
new IsInCarDM[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/cardm", cmdtext, true, 10) == 0)
{
IsInCarDM[playerid] = 1;
return 1;
}
if (strcmp("/fix", cmdtext, true, 10) == 0)
{
if (IsInCarDM[playerid] == 1) return SendClientMessage(playerid, color, "can't use that here");
//other code
}
return 0;
}
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsInCarDM[playerid] == 1) SendClientMessage(playerid, color, "player was in car dm");
return 1;
}