Command to go to X, Y and Z (Float):
pawn Код:
CMD:lgoto(playerid, params[])
{
new Float:x, Float:y, Float:z, string[128];
if(sscanf(params, "fff", x, y, z)) return Msg(playerid, color, ""#gold"[USAGE]: "#blue"/lgoto <x> <y> <z>");
if(GetPlayerState(playerid) == 2) SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
else SetPlayerPos(playerid,x,y,z);
format(string,sizeof(string),""#blue"You have gone to the coordinates "#red"X: %.2f, "#pink"Y: %.2f, "#ice"Z: %.2f", x,y,z); Msg(playerid,color,string);
Sound(playerid,1054);
return 1;
}
For String and Integer together:
pawn Код:
new string[700], id, reason[70], day, month, year, hour, minute, second;
new ActualDay, ActualMonth, ActualYear, ActualHour, ActualMinute, ActualSecond;
if(sscanf(params, "ds[70]dddddd", id, reason, day, month, year, hour, minute, second)) return Msg(playerid, color, ""#gold"[USAGE]: "#blue"/ban <playerid> <reason> <unban day> <unban month> <unban year> <unban hour> <unban minute> <unban second>");