07.10.2011, 13:46
Quando eu dou spawn em alguem ou reloga etc.. aperta f na hq e equipa oq fasso pra tira isso ? pq o cara jah nasce com arma ai vai apertando f e pegando mais balas ;x kero tira isso alguem ajuda pls
else if (keys == KEY_SECONDARY_ATTACK)
{
Conce[playerid] = 0;
DestroyVehicle(ShopCar[playerid]);
TogglePlayerControllable(playerid, true);
CarShopping[playerid] = false;
carbrowse[playerid] = 0;
GameTextForPlayer(playerid, " ", 1000, 3);
SetPlayerPos(playerid, OrgX[playerid], OrgY[playerid], OrgZ[playerid]);
SetPlayerFacingAngle(playerid, OrgA[playerid]);
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
}
if(PlayerInfo[playerid][pMember] == 5 && PlayerToPoint(8.0,playerid,308.1387,1120.6375,1083.8828))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
Safe(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 6 && PlayerToPoint(8.0,playerid,2491.8005,-1701.2091,1018.3438))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 22 && PlayerToPoint(30.0,playerid,425.1764,2531.2666,16.6157))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 30, 200);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 12 && PlayerToPoint(8.0,playerid,2343.3301,-1186.4164,1027.9766))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 11 && PlayerToPoint(20.0,playerid,2174.5898,-2250.9900,13.3031))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 15 && PlayerToPoint(8.0,playerid,2807.3235,-1165.5062,1025.5703))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 18 && PlayerToPoint(8.0,playerid,-223.2749,1400.6974,27.7656))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 10 && PlayerToPoint(8.0,playerid,1142.1709,-10.6546,1000.6719))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 11 && PlayerToPoint(20.0,playerid,2174.5898,-2250.9900,13.3031))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 19 && PlayerToPoint(8.0,playerid,413.9086,2537.3391,10.0077))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 20 && PlayerToPoint(8.0,playerid,2552.4690,-1294.6213,1060.9844))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 16 && PlayerToPoint(8.0,playerid,1269.2566,-782.9906,1084.0149))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 29, 60);
SafeGivePlayerWeapon(playerid, 8, 1);
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, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 29, 60);
SafeGivePlayerWeapon(playerid, 8, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 8 && PlayerToPoint(8.0,playerid,449.0826,-80.9784,999.5547))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 4, 1);
SafeGivePlayerWeapon(playerid, 24, 100);
SafeGivePlayerWeapon(playerid, 34, 60);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pMember] == 13 && PlayerToPoint(8.0,playerid,503.2502,-74.7538,998.7651))
{
GetPlayerName(playerid,sendername,256);
ReduceTime[playerid] = 1;
format(string, 256, "%s, recebeu as armas",sendername);
ProxDetector(50.0,playerid,string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
SafeGivePlayerWeapon(playerid, 24, 35);
SafeGivePlayerWeapon(playerid, 1, 1);
SafeGivePlayerWeapon(playerid, 5, 1);
SetTimerEx("ReduceTimer", 10000, false, "i", playerid);
}
else if (PlayerToPoint(3.0, playerid,1781.3569,-2101.8064,14.0566))
{
if(PlayerToPoint(3.0, playerid,1781.3569,-2101.8064,14.0566))
{
SetPlayerPos(playerid,2237.5791,-1080.8337,1049.0234);
SetPlayerInterior(playerid,2);
PlayerInfo[playerid][pInt] = 2;
SetPlayerVirtualWorld(playerid, 1);
}
else
{
SetPlayerVirtualWorld(playerid, 1);
}
}