05.08.2012, 14:00
(
Последний раз редактировалось Sig Hansen; 05.08.2012 в 14:02.
Причина: Nevermind
)
Код:
if(strcmp(cmd, "/dropcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] > 0)
{
if(Packages[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY," You must finish delivering your Materials Packages !");
return 1;
}
if(Crates[playerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY," You must finish delivering your Drug Crates !");
return 1;
}
if(PlayerInfo[playerid][pCarTime] == 0)
{
PlayerInfo[playerid][pCarTime] = 0;
GameTextForPlayer(playerid, "~w~Car Selling ~n~~r~Drop the car at the Crane", 5000, 1);
CP[playerid] = 1;
SetPlayerCheckpoint(playerid, 2696.0520,-2225.8101,13.2554,8.0);
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You already sold a car, wait till your reload time is over !");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not logged in !");
}
}
return 1;
}
