15.09.2011, 13:31
pawn Код:
CMD:ir(playerid, params[])
{
//if(!IsPlayerAdmin(playerid)) return 1;
new Float:gPos[3];
if(sscanf(params, "fff", gPos[0], gPos[1], gPos[2])) return SendClientMessage(playerid, -1, "Uso correto: /ir [x] [y] [z]");
SetPlayerPos(playerid, gPos[0], gPos[1], gPos[2]);
new gString[128];
format(gString, sizeof(gString), "Vocк teleportou para a coordenada {00FF33}%f %f %f{FFFFFF}.", gPos[0], gPos[1], gPos[2]);
SendClientMessage(playerid, -1, gString);
return 1;
}