25.06.2011, 12:00
In your CMD:
In OnPlayerDeath:
In OnPlayerDisconnect:
Hope this helps.
pawn Код:
if(GetPVarInt(playerid, "gearme") != 1) // 1 means its already used.
{
SetPVarInt(playerid, "gearme", 1); //Setting to 1, which lets the cmd to detect it on next use. See Above^
GameTextForPlayer(playerid, "Cheat found! Multiple weapons and full armour given.", 5000, 4);
GivePlayerWeapon(playerid, 24, 700);
GivePlayerWeapon(playerid, 31, 1400);
SetPlayerArmour(playerid, 100);
} else SendClientMessage(playerid, 0xFFFFFFFF, "You can only use it again after death.");
pawn Код:
SetPVarInt(playerid, "gearme", 0); // Setting it to normal.
pawn Код:
SetPVarInt(playerid, "gearme", 0); // Setting it to normal.