17.11.2011, 21:43
Код:
CMD:goto(playerid, params[])
{
new id;
if(PlayerInfo[playerid][pAdmin] < 1)return SendAdmin(playerid, "Not admin!");
if(sscanf(params, "u", id))return Use(playerid, "/goto [name/ID]");
new car=GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z;
GetPlayerPos(id, x, y, z);
if(car==0)
{
SetPlayerPos(playerid, x+1, y, z);
}
else
{
SetVehiclePos(car, x+3, y, z);
}
SendClientMessage(playerid, Grey, "Teleport.");
return 1;
}
http://forum.sa-mp.com/showthread.ph...ghlight=sscanf (6th post)

