12.08.2015, 16:02
hello guys i need help alot of commands i get same problem
pawn Код:
CMD:gotoid(playerid, params[])
{
new pID, Float: X, Float: Y, Float: Z;
if(PlayerInfo[playerid][pAdminLevel] >= 1)
{
if(sscanf(params, "u", pID))
return SendClientMessage(playerid, COLOR_WHITE, "(USAGE) /gotoid [playerid/name]");
if(IsPlayerConnected(pID))
{
GetPlayerPos(pID, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
SetPlayerInterior(playerid, GetPlayerInterior(pID));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(pID));
if(IsPlayerInAnyVehicle(playerid)) {
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
PutPlayerInVehicle(playerid, GetPlayerVehicleID(playerid), 0);
}
}
else SendClientMessage(playerid, COLOR_WHITE, "The playerid you entered is not connected.");
}
else SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use this command.");
return 1;
}
the problem is the commands is not working properly like i have problem with ids plz help