respawn trailer . -
pawn Код:
if (strcmp(cmd, "/descarregarp", true) == 0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(dini_Int(file, "Profissao") == Petroleiro){
}
if (PlayerToPoint(60.0, playerid, 610.0511,1700.9008,6.9922))
{
GivePlayerGrana(playerid, 80);
if (PlayerToPoint(60.0, playerid, 69.7854,1219.2927,18.8093))
{
GivePlayerGrana(playerid, 70);
}
else if (PlayerToPoint(60.0, playerid, -1676.2520,413.1227,7.1797))//3
{
GivePlayerGrana(playerid, 920);
}
else if (PlayerToPoint(60.0, playerid, -89.3602,-1165.5499,2.3493))//4
{
GivePlayerGrana(playerid, 500);
}
else if (PlayerToPoint(60.0, playerid, 1002.8900,-941.1104,42.1797))//5
{
GivePlayerGrana(playerid, 850);
}
else if (PlayerToPoint(60.0, playerid, 1938.6797,-1770.5103,13.3828))//6
{
GivePlayerGrana(playerid, 1200);
}
else if (PlayerToPoint(60.0, playerid, -1605.5865,-2713.5432,48.5335))//7
{
GivePlayerGrana(playerid, 1350);
}
else if (PlayerToPoint(60.0, playerid, 670.6545,1726.7865,7.1875))//8
{
GivePlayerGrana(playerid, 900);
}
}
else
{
if (Carregamento[playerid] == 1)
{
SendClientMessage(playerid, Vermelho, "** Seu veнculo nгo estб carregado!");
return 1;
}
else
{
Carregamento[playerid] = 1;
SendClientMessage(playerid, 0x99FFFFAA, "* Seu Veiculo Foi descarregado e Vocк ganhou.");
DetachTrailerFromVehicle(GetPlayerVehicleID(playerid));
SetVehicleToRespawn(GetVehicleTrailer(playerid));
return 1;
}
}
{
SendClientMessage(playerid, Vermelho, "** Vocк nгo esta no check de descarga.");
return 1;
}
}
Re: respawn trailer . -
Re: respawn trailer . -
Re: respawn trailer . -