01.02.2014, 01:58
Ai mani acho que isso vai te servir:
OBS: Nгo sei se estб certo pois eu nгo mecho com pawno a 1 ano kkk e a Indentaзгo nгo sei se vai estar boa pois fiz no bloco de notas.
pawn Код:
CMD:goto(playerid,params[])
{
new
Float:posX,
Float:posY,
Float:posZ,
playerGOTO
;
new stringa[75];
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
if(sscanf(params,"d",playerGOTO)) return SendClientMessage(playerid,-1,"Uso correto: /goto [playerid]");
if(!IsPlayerConnected(playerGOTO)) return SendClientMessage(playerid,-1,"Player nгo conectado!");
GetPlayerPos(playerGOTO,posX,posY,posZ);
SetPlayerPos(playerid,posX,posY,posZ);
SetPlayerInterior(playerid,GetPlayerInterior(playerGOTO));
SetPlayerVirutalWorld(playerid,GetPlayerVirtualWorld(playerGOTO));
format(stringa,sizeof(stringa),"Vocк foi teleportado atй a posiзгo de %s ID: %d",name(playerGOTO),playerGOTO);
SendClientMessage(playerid,-1,stringa);
return 1;
}