24.02.2010, 15:34
hello,
what not good in this command what i do not okay? i do /swat in the loocker room and nothing :S
please help me
what not good in this command what i do not okay? i do /swat in the loocker room and nothing :S
please help me
Код:
if(strcmp(cmd, "/swat", true) == 0) { if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader] == 1) { if(swat[playerid] == 0) { if(authorizeswat == 1) { if (PlayerToPoint(3, playerid,210.5792,144.4530,1003.0234) || PlayerToPoint(3,playerid,211.1120,151.6898,1003.0234) || PlayerInfo[playerid][pLocal] != 255) { ResetPlayerWeapons(playerid); SafeGivePlayerWeapon(playerid, 27, 2000); SafeGivePlayerWeapon(playerid, 31, 3000); SafeGivePlayerWeapon(playerid, 29, 2000); SafeGivePlayerWeapon(playerid, 24, 300); //SafeGivePlayerWeapon(playerid, 3, 1); //SafeGivePlayerWeapon(playerid, 41, 5000); SafeGivePlayerWeapon(playerid, 17, 5); SafeGivePlayerWeapon(playerid, 34, 200); SafeGivePlayerWeapon(playerid, 46, 1); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid, 100); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string,sizeof(string), "* %s puts on his S.W.A.T uniform.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } else { SendClientMessage(playerid, COLOR_GREY, "SWAT is not authorized by a high command!"); } } else { if(PlayerInfo[playerid][pLeader] == 1) { SetPlayerSkin(playerid, 281); } if(PlayerInfo[playerid][pRank]==5) { SetPlayerSkin(playerid, 281); } if(PlayerInfo[playerid][pRank]==4) { SetPlayerSkin(playerid, 281); } if(PlayerInfo[playerid][pRank]==3) { SetPlayerSkin(playerid, 281); } if(PlayerInfo[playerid][pRank]==2) { SetPlayerSkin(playerid, 267); } if(PlayerInfo[playerid][pRank]==1) { SetPlayerSkin(playerid, 266); } swat[playerid] = 0; SafeResetPlayerWeapons(playerid); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string,sizeof(string), "* %s puts his S.W.A.T uniform back in the locker.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } } if(!IsACop(playerid) || PlayerInfo[playerid][pLeader] > 1 || PlayerInfo[playerid][pLeader] < 1) { SendClientMessage(playerid, COLOR_GREY, "You are not a cop!"); } return 1; }