27.03.2011, 17:29
Код:
if(strcmp(cmdtext, "/equip", true) == 0) { if(gTeam[playerid] == 13) { if(IsPlayerInRangeOfPoint(playerid,5.0, 2559.9490,-1295.0225,1060.9844)) { new iCount = GetTickCount(); if((iCount - iLastHealed[playerid]) > 180000) { GivePlayerWeapon(playerid, 24, 50); // deagle GivePlayerWeapon(playerid, 31, 500); // m4 GivePlayerWeapon(playerid, 28, 500); // uzi GivePlayerWeapon(playerid, 8, 1); // katana GivePlayerWeapon(playerid, 25, 50); // shotgun SetPlayerHealth(playerid, 100); SetPlayerArmour(playerid, 100); iLastHealed[playerid] = iCount; GameTextForPlayer(playerid,"~r~texz!", 5000, 1); } else return SendClientMessage(playerid, COLOR_RED, ".... 3mins!"); } else { SendClientMessage(playerid, COLOR_GREY," You are not.... } } else { SendClientMessage(playerid, COLOR_RED,"* You arent in this gang!"); } return 1; }