28.02.2010, 19:32
Quote:
Originally Posted by Fabio11
Try the Mine:
Код:
dcmd_goto(playerid,params[]) { if (dUserINT(PlayerName(playerid)).("admin")>=1) { if(!strlen(params)) return SendClientMessage(playerid,COLOR_ROJOCLARO,"USAGE: /goto <id>"); new id; id = strval(params); if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) { new string[256],Name[24],ActionName[24],Float:X,Float:Y,Float:Z; GetPlayerName(playerid,Name,24); GetPlayerName(id,ActionName,24); new Interior = GetPlayerInterior(id); SetPlayerInterior(playerid,Interior); SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id)); GetPlayerPos(id,X,Y,Z); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z); LinkVehicleToInterior(GetPlayerVehicleID(playerid),Interior); } else SetPlayerPos(playerid,X,Y,Z); format(string,256,"You have gone to %s",ActionName); return SendClientMessage(playerid,COLOR_ROJOCLARO,string); } else return SendClientMessage(playerid,COLOR_ROJOCLARO,"You can't teleport to yourself or to a disconected user"); } return 1; } |
Im learning while repairing..