01.02.2014, 00:08
Preciso de 1 code que player pode ir atй player /goto alguйm tem o code completo para poder me passar.
Agradeзo desde jб.
Agradeзo desde jб.
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;
}