#include <a_samp>#include <colors> //Ha nincs color includeod akkor definiálnod kell a COLOR_YELLOW-t!public OnPlayerClickPlayer(playerid, clickedplayerid, source){if(!IsPlayerAdmin(playerid)){ SendClientMessage(playerid, COLOR_RED, \"Nincs jogod gotozni!\") return 1;}new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];new Float:x, Float:y, Float:z;GetPlayerPos(clickedplayerid, x, y, z);SetPlayerPos(playerid, x +3, y +3 , z +3)GetPlayerName(playerid, name, sizeof(name));format(string, sizeof(string), \"Admin %s elteleportált hozzád!\", name);SendClientMessage(clickedplayerid, COLOR_YELLOW, string)return 1;}
format(string, sizeof(string), \"Admin %s elteleportált hozzád!\", name); SendClientMessage(playerid, COLOR_YELLOW, string)
public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, \"Nincs jogod gotozni!\"); new name[MAX_PLAYER_NAME], string[25+MAX_PLAYER_NAME],Float:pos[3]; GetPlayerPos(clickedplayerid, pos[0],pos[1],pos[2]); SetPlayerPos(playerid,pos[0]+3,pos[1]+3,pos[2]+3) GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), \"Admin %s elteleportált hozzád!\", name); SendClientMessage(clickedplayerid, COLOR_YELLOW, string); return 1;}