PHP код:
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] != 9 && PlayerInfo[playerid][pDonateRank] <= 1)
{
SendClientMessage(playerid,COLOR_GREY," something!");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1423.6151, -1320.5438, 13.5546)) {
if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, " something!"); return 1; }
if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " something !"); return 1; }
if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY," something!"); return 1; }
if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, " something !"); SetPlayerHealth(playerid, 0.0); return 1; }
if(PlayerInfo[playerid][pCash] > 499) { SendClientMessageEx(playerid, COLOR_GREY," something !"); return 1;}
{
GotMats[playerid] = 1;
PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash]-500;
GivePlayerMoney(playerid, -500);
Packages[playerid] = 10;
CP[playerid] = 2;
SetPlayerCheckpoint(playerid, 3.0, 2172.21, -2263.25, 13.32);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* something.");
GameTextForPlayer(playerid, something", 5000, 1);
PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
return 1;
}
}
else if(IsPlayerInRangeOfPoint(playerid, 3.0, 2390.4053, -2008.2618, 13.5537))
{
if(Packages[playerid] >= 10) { SendClientMessage(playerid, COLOR_GREY, " something!"); return 1; }
if(CP[playerid] == 1) { SendClientMessage(playerid, COLOR_GREY, " something !"); return 1; }
if(Crates[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY," something!"); return 1; }
if(GetPlayerVirtualWorld(playerid) != 0) { SendClientMessage(playerid, COLOR_GREY, " something !"); SetPlayerHealth(playerid, 0.0); return 1; }
if(PlayerInfo[playerid][pCash] > 499) { SendClientMessageEx(playerid, COLOR_GREY," something !"); return 1;}
{
GotMats[playerid] = 1;
GivePlayerMoney(playerid, -500);
Packages[playerid] = 10;
CP[playerid] = 3;
SetPlayerCheckpoint(playerid, 2288.0730, -1105.4535, 37.9766, 3.0);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* something");
GameTextForPlayer(playerid, something", 5000, 1);
PlayerPlaySound(playerid, 1054, 0.0, 0.0, 0.0);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " something!");
}
}
return 1;
}