16.07.2017, 21:32
Try this:
If it's not the correct color for ORANGESV, you need to get the hex code and put it inside these brackets: {COLORCODE} so, for e.g: ****** Orange Hex Code and just get the code and do this, {FF4500}.
PHP код:
CMD:goto(playerid, params[])
{
new id;
if(IsPlayerConnected(id))
{
if ( GetPVarInt( playerid, "AdminLevel" ) < 1)
return SendClientMessage( playerid, -1, "You are not allowed to use this command!");
{
if(!sscanf(params, "ui", id))
{
new string[64];
new vehid = GetPlayerVehicleID(playerid);
new name[MAX_PLAYER_NAME];
new Float:x, Float:y, Float:z;
new PlayerName[MAX_PLAYER_NAME];
GetPlayerPos(id,x,y,z);
GetVehiclePos(vehid,x,y,z);
SetPlayerInterior(playerid,GetPlayerInterior(id));
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(id, PlayerName, sizeof(PlayerName));
format(string, sizeof(string), "{FF4500}%s {FFFFFF}teleported his self to you.", name);
SendClientMessage(id, -1, string);
format(string, sizeof(string), "You teleported yourself to {FF4500}%s.", PlayerName);
SendClientMessage(playerid, -1, string);
SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id));
SetPlayerPos(playerid,x+2,y,z);
SetVehiclePos(vehid,x+2,y,z);
PutPlayerInVehicle(playerid, vehid, 0);
return 1;
}
else return SendClientMessage(playerid, -1, "Usage : /goto [id/name]");
}
}
else return SendClientMessage(playerid, -1, "Player is not connected.");
}