06.05.2013, 18:15
Try this:
+REP if I helped!, I hope that I helped ya
pawn Код:
CMD:getcar(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
new carid;
if(sscanf(params, "d", carid)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /getcar [carid]");
new Float:plocx,Float:plocy,Float:plocz;
GetPlayerPos(playerid, plocx, plocy, plocz);
SetVehiclePos(carid,plocx,plocy+4, plocz);
SetVehicleVirtualWorld(carid, GetPlayerVirtualWorld(playerid));
LinkVehicleToInterior(carid, GetPlayerInterior(playerid));
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "You are not authorized to use that command.");
}
return 1;
}
![Wink](images/smilies/wink.png)