18.05.2014, 18:49
tenta assim
pawn Код:
if(strcmp(cmd, "/trazercarro", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
return SendClientMessage(playerid, COLOR_GRAD2, "USE: /trazercarro [carro id]");;
}
new Float:plocx,Float:plocy,Float:plocz;
new plo;
plo = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 4)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342 && PlayerInfo[playerid][pAdmin] != 1341)
{
return SendClientMessage(playerid, COLOR_GRAD1, "Voce Nao estб trabalhando! (/trabalhar)");;
}
GetPlayerPos(playerid, plocx, plocy, plocz);
SetVehiclePos(plo,plocx,plocy+4, plocz+4); LinkVehicleToInterior(plo, GetPlayerInterior(playerid));
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce Nao estб autorizado a usar este comando!");
}
}
return 1;
}