SA-MP Forums Archive
[AJUDA]Oque esta errado meste comando ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA]Oque esta errado meste comando ? (/showthread.php?tid=257393)



[AJUDA]Oque esta errado meste comando ? - willian Franco - 25.05.2011

if(strcmp(cmd, "/apreendercarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USO: /apreendercarro [carid]");
return 1;
}
if(PlayerInfo[playerid][pMember] != 14)
{
SendClientMessage(playerid, COLOR_RED, "[Erro] Vocк nгo estб autorizado a usar este comando.");
return 1;
}
else
{
new carid = strval(tmp);
VehicleInfo[carid][vPRFLock] = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
SetVehicleParamsForPlayer(carid, i, 0, 1);
}
SendClientMessage(playerid, COLOR_WHITE, "[Info] Veнculo apreendido.");
}
}
return 1;
}

ele trava o carro mais depois de pouco tempo ele souta o carro denovo


Re: [AJUDA]Oque esta errado meste comando ? - deregudegu - 25.05.2011

COLOQUE SEU CODIGO ENTRE AS TAGS DE PAWN!

Jб leu o Wiki Samp?
https://sampwiki.blast.hk/wiki/SetVehicleParamsForPlayer

Olha a 1Є nota que eles falam:

Note: You will have to respawn the vehicle to properly remove the objective.

Traduzindo:

Quando o carro der respawn essas propiedades sumirгo!