26.05.2013, 14:15
eae galera eu fiz um cod aq no meu comando de /descarregarp e /carregarp mais se ele tentar carregar sem o trailer aparece que ele nгo possue um trailer .. mais nгo estб aparecendo fiz assim
Valendo REPLY
Valendo REPLY
pawn Код:
if (strcmp(cmd, "/descarregarp", true) == 0)
{
if(dini_Int(file, "Profissao") == Petroleiro)
if (PlayerToPoint(60.0, playerid, 610.0511,1700.9008,6.9922) || PlayerToPoint(60.0, playerid, 69.7854,1219.2927,18.8093) || PlayerToPoint(60.0, playerid, -1676.2520,413.1227,7.1797) || PlayerToPoint(60.0, playerid, -89.3602,-1165.5499,2.3493) || PlayerToPoint(60.0, playerid, 1002.8900,-941.1104,42.1797) || PlayerToPoint(60.0, playerid, 1938.6797,-1770.5103,13.3828) || PlayerToPoint(60.0, playerid, -1605.5865,-2713.5432,48.5335) || PlayerToPoint(60.0, playerid, 670.6545,1726.7865,7.1875))
{
if(dini_Int(file, "Profissao") == Petroleiro)
{
if(Carregamento[playerid] == 1)
{
SendClientMessage(playerid, Vermelhoc, " | ERRO | Seu veнculo nгo estб carregado!");
return 1;
}
Carregamento[playerid] = 1;
SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
SendClientMessage(playerid, COLOR_GREEN, " Seu veнculo foi descarregado й vocк ganhou %d reais.");
if(PlayerToPoint(60.0, playerid, 610.0511,1700.9008,6.9922))
{
GivePlayerGrana(playerid, 80);
return 1;
}
else if(PlayerToPoint(60.0, playerid, 69.7854,1219.2927,18.8093))
{
GivePlayerGrana(playerid, 70);
return 1;
}
else if(PlayerToPoint(60.0, playerid, -1676.2520,413.1227,7.1797))//3
{
GivePlayerGrana(playerid, 920);
return 1;
}
else if(PlayerToPoint(60.0, playerid, -89.3602,-1165.5499,2.3493))//4
{
GivePlayerGrana(playerid, 500);
return 1;
}
else if(PlayerToPoint(60.0, playerid, 1002.8900,-941.1104,42.1797))//5
{
GivePlayerGrana(playerid, 850);
return 1;
}
else if(PlayerToPoint(60.0, playerid, 1938.6797,-1770.5103,13.3828))//6
{
GivePlayerGrana(playerid, 1200);
return 1;
}
else if(PlayerToPoint(60.0, playerid, -1605.5865,-2713.5432,48.5335))//7
{
GivePlayerGrana(playerid, 1350);
return 1;
}
else if(PlayerToPoint(60.0, playerid, 670.6545,1726.7865,7.1875))//8
{
GivePlayerGrana(playerid, 900);
}
SendClientMessage(playerid, Vermelho, "** Vocк nгo й petroleiro.");
return 1;
}
else
{
if(GetVehicleTrailer(GetPlayerVehicleID(playerid)) == 584) SendClientMessage(playerid, 0xFFFFFFAA, "| ERRO | Vocк nгo possue um Trailer de petroleo");// Aqui nгo sei se estб certo :(
}
}
else
{
SendClientMessage(playerid, Vermelho, "** Vocк nгo esta no check de descarga.");
return 1;
}
}