12.05.2012, 11:35
Here is that whole thing:
PHP код:
if (IsPlayerInRangeOfPoint(playerid, 10.0, 2102.71, -103.97, 2.28)) // Matrun 3
{
new vehicle = GetPlayerVehicleID(playerid);
if(IsABoat(vehicle))
{
if(GetPVarInt(playerid, "Packages") >= 10) return SendClientMessageEx(playerid, COLOR_GRAD2, "something
if(PlayerInfo[playerid][pDonateRank] == 1)
{
if(GetPlayerCash(playerid) > 1124)
{
SendClientMessageEx(playerid, COLOR_GREY," something!");
return 1;
}
GivePlayerCash(playerid, -1125);
SetPVarInt(playerid, "Packages", 23);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"something");
SendClientMessageEx(playerid, COLOR_YELLOW,"something.");
}
else if(PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
{
if(GetPlayerCash(playerid) > 1499)
{
SendClientMessageEx(playerid, COLOR_GREY," something!");
return 1;
}
GivePlayerCash(playerid, -1500);
SetPVarInt(playerid, "Packages", 30);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* something.");
SendClientMessageEx(playerid, COLOR_YELLOW,"something.");
}
else if(PlayerInfo[playerid][pDonateRank] >= 4)
{
if(GetPlayerCash(playerid) < 1875)
{
SendClientMessageEx(playerid, COLOR_GREY," something!");
return 1;
}
GivePlayerCash(playerid, -1875);
SetPVarInt(playerid, "Packages", 38);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"somethin.");
SendClientMessageEx(playerid, COLOR_YELLOW,"something.");
}
else
{
if(GetPlayerCash(playerid) < 750)
{
SendClientMessageEx(playerid, COLOR_GREY," something!");
return 1;
}
GivePlayerCash(playerid, -750);
SetPVarInt(playerid, "Packages", 15);
SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"something");
}
SendClientMessageEx(playerid, COLOR_WHITE, "something.");
SetPVarInt(playerid, "MatDeliver", 333);
SetPVarInt(playerid, "tpMatRunTimer", 15);
SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPMATRUNTIMER);
SetPlayerCheckpoint(playerid, -330.44, -467.54, 0.85, 5);
return 1;
}
else
{
SendClientMessageEx(playerid, COLOR_GREY," something");
}
return 1;
}