CMD:gotostart(playerid) return SetPVarInt(playerid, \"GotoAllow\", 1);CMD:gotostop(playerid) return SetPVarInt(playerid, \"GotoAllow\", 0);CMD:gotom(playerid, params[]){ new giveplayerid; if(sscanf(params, \"d\", giveplayerid)) return SendClientMessage(playerid, 0xff0000AA, \"Használat: /gotom [id]\"); else if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xff0000AA, \"Hibás játékos id-t írtál be!\"); else { new name[MAX_PLAYER_NAME], gname[MAX_PLAYER_NAME], string[128]; GetPlayerName(playerid, name, sizeof(name)); GetPlayerName(giveplayerid, gname, sizeof(gname)); if(GetPVarInt(giveplayerid, \"GotoAllow\") == 1) { new Float:x, Float:y, Float:z; GetPlayerPos(giveplayerid, x, y, z); SetPlayerPos(playerid, x+1, y+1, z); format(string, sizeof(string), \"%s hozzáteleportált %s-hoz/hez.\", name, gname); SendClientMessageToAll(0x00ff00AA, string); } else { format(string, sizeof(string), \"%s nem engedi hogy hozzá teleportálhassanak!\", gname); SendClientMessage(playerid, 0xff00ffAA, string); } } return 1;}
CMD:gotom ( playerid, params [ ] ){ new gID, string [ 128 ]; new Float:X, Float:Y, Float:Z; if ( sscanf ( params, \"u\", gID ) ) return SendClientMessage(playerid, COLOR_RED, \"Használat: /goto [Játékos ID/Név]\"); else if ( !IsPlayerConnected ( gID ) && gID == INVALID_PLAYER_ID && GetPVarInt ( gID, \"pGoto\") == 0 ) return SendClientMessage(playerid, COLOR_RED, \"Hiba: A játékos nem elérhetõ, magadat választottad.\"); GetPlayerPos ( gID, X, Y, Z ); SetPlayerInterior ( playerid, GetPlayerInterior ( gID ) ); SetPlayerVirtualWorld ( playerid, GetPlayerVirtualWorld ( gID ) ); if ( GetPlayerState ( playerid ) != 2 ) return SetPlayerPos ( playerid, X+2, Y, Z ); { SetVehiclePos ( GetPlayerVehicleID ( playerid ), X+3, Y, Z ); LinkVehicleToInterior ( GetPlayerVehicleID ( playerid ), GetPlayerInterior ( gID ) ); SetVehicleVirtualWorld ( GetPlayerVehicleID ( playerid ), GetPlayerVirtualWorld ( gID ) ); format ( string, 128,\"{f51b1b}%s {1878b8}odateleportált hozzád!\", PlayerName ( playerid ) ); SendClientMessage ( gID, 0x000000FF, string ); format ( string, 128,\"{1878b8}Oda teleportáltál: %s-hez(hoz)!\", PlayerName ( gID ) ); SendClientMessage ( playerid, 0x000000FF, string ); } return 1;}CMD:gotostart ( playerid, params [ ] ){ if ( GetPVarInt ( playerid, \"pGoto\" ) == 0 ) { SetPVarInt ( playerid, \"pGoto\", 1 ); SendClientMessage ( playerid, COLOR_BLUE, \"Engedélyezted, hogy hozzád teleportálhassanak!\" ); return 1;}CMD:gotostop(playerid, params[]){ if ( GetPVarInt ( playerid, \"pGoto\" ) == 1 ) { SetPVarInt ( playerid, \"pGoto\", 0 ); SendClientMessage ( playerid, COLOR_BLUE, \"Letiltottad, hogy hozzád teleportálhassanak!\" ); } return 1;}