if(PlayerInfo[playerid][Faction] == 4) { if(IsPlayerInRangeOfPoint(playerid,3.0,257.9324,77 .5067,1003.6406)) { PlayerInfo[playerid][Duty]=1; new Float: X,Float: Y,Float: Z; GetPlayerPos(playerid,X,Y,Z); format(string,sizeof(string),"%s takes the swat unifrom and guns from the locker and wear the unifrom."); for(new i=0; i<MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i,5.0,X,Y,Z)) { SendClientMessage(i,COLOR_SEA,string); } } SetPlayerSkin(playerid,285); GivePlayerWeapon(playerid,17,50); GivePlayerWeapon(playerid,31,500); GivePlayerWeapon(playerid,29,500); GivePlayerWeapon(playerid,24,500); GivePlayerWeapon(playerid,39,1); return 1; } else { return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]: You are not at the locker room!"); } |
if(PlayerInfo[playerid][Faction] == 4)
{
if(IsPlayerInRangeOfPoint(playerid,3.0,257.9324,77 .5067,1003.6406))
{
PlayerInfo[playerid][Duty]=1;
new Float: X,Float: Y,Float: Z;
GetPlayerPos(playerid,X,Y,Z);
new plname[MAX_PLAYER_NAME];
GetPlayerName(playerid,plname,sizeof(plname));
format(string,sizeof(string),"%s takes the swat unifrom and guns from the locker and wear the unifrom.",plname);
for(new i, m=GetMaxPlayers(); i<m; i++)
{
if(!IsPlayerConnected(i)) continue;
if(IsPlayerInRangeOfPoint(i,5.0,X,Y,Z))
SendClientMessage(i,COLOR_SEA,string);
}
SetPlayerSkin(playerid,285);
GivePlayerWeapon(playerid,17,50);
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,24,500);
GivePlayerWeapon(playerid,39,1);
return 1;
}
else
{
return SendClientMessage(playerid,COLOR_BRIGHTRED,"[ERROR]: You are not at the locker room!");
}
}