30.04.2013, 04:46
PHP код:
if (strcmp(cmd, "/descarregarp", true) == 0)
{
if (PlayerToPoint(60.0, playerid, 1935.5637,-1771.5033,13.382) || PlayerToPoint(60.0, playerid, coordenadas) || PlayerToPoint(60.0, playerid, coordenadas))
{
if (Carregamento[playerid] == 1)
{
SendClientMessage(playerid, Vermelho, "** Seu veнculo nгo estб carregado!");
return 1;
}
else
{
Carregamento[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "* Seu veнculo foi descarregado й vocк ganhou 3500 reais.");
GivePlayerGrana(playerid, 0);
DetachTrailerFromVehicle(GetPlayerVehicleID(player id));
SetVehicleToRespawn(GetVehicleTrailer(13);
return 1;
}
}
else
{
SendClientMessage(playerid, Vermelho, "** Vocк nгo esta no check de descarga.");
return 1;
}
}