08.05.2011, 15:23
tenta
pawn Код:
if(strcmp(cmd, "/pegararmas", true) == 0)
{
if(PlayerToPoint(10.0,playerid,1269.2566,-782.9906,1084.0149))
{
if(JFS[playerid] == 1) return SendClientMessage(playerid, Cor, " Vocк Nгo Pode Usar Estй Comando Denovo :C");
if(ReduceTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GREY, " Saia e entre novamente na HQ para pegar armas, mas nao abuse!");
else if(PlayerInfo[playerid][pMember] == 16)
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s Pegou armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 10);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 30, 250);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 17 && PlayerToPoint(8.0,playerid,-2166.3108,645.9502,1052.3750))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s Pegou armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 10);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 30, 250);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 8 && PlayerToPoint(8.0,playerid,1714.2894,-1663.4102,20.2280) || PlayerToPoint(8.0,playerid,449.0826,-80.9784,999.5547))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s Pegou armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 34, 150);
GivePlayerWeapon(playerid, 30, 200);
GivePlayerWeapon(playerid, 31, 200);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 25, 150);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
JFS[playerid] ++;
}
}
}
return 1;
}