10.07.2011, 14:25
(
Последний раз редактировалось matanm; 10.07.2011 в 15:37.
)
can you help me ? when i write /swat, the server fell down...
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);
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!");
}