//Mód elejérenew Text:neved[MAX_PLAYERS];forward Frissites(playerid);new tFrissites[MAX_PLAYERS]; //OnPlayerConnec Aláneved[playerid] = TextDrawCreate(498.000000, 102.000000, \"Név:\");TextDrawUseBox(neved[playerid], 0);TextDrawColor(neved[playerid], 16711935);TextDrawSetOutline(neved[playerid], 0);TextDrawBackgroundColor(neved[playerid], 255);TextDrawFont(neved[playerid], 1);TextDrawLetterSize(neved[playerid], 0.310000, 1.300000);//OnPlayerSpawn alátFrissites[playerid] = SetTimerEx(\"Frissites\", 2500, true, \"i\", playerid);TextDrawShowForPlayer(playerid, neved[playerid]);new str[128];format(str, sizeof(str),\"Név: %s\", nev);TextDrawSetString(neved[playerid], str);//Mód végérepublic Frissites(playerid){GetPlayerName(playerid, nev, sizeof(nev));new str[128];format(str, sizeof(str),\"Név: %s\", nev);TextDrawSetString(neved[playerid], str);return 1;}
#include a_samp//Mód elejérenew nev[MAX_PLAYER_NAME];new Text:neved[MAX_PLAYERS];forward Frissites(playerid);new tFrissites[MAX_PLAYERS]; public OnPlayerConnect(playerid){neved[playerid] = TextDrawCreate(498.000000, 102.000000, \"Név:\");TextDrawUseBox(neved[playerid], 0); TextDrawColor(neved[playerid], 16711935); TextDrawSetOutline(neved[playerid], 0);TextDrawBackgroundColor(neved[playerid], 255);TextDrawFont(neved[playerid], 1); TextDrawLetterSize(neved[playerid], 0.310000, 1.300000); return 1;}public OnPlayerSpawn(playerid){tFrissites[playerid] = SetTimerEx(\"Frissites\", 2500, true, \"i\", playerid);TextDrawShowForPlayer(playerid, neved[playerid]);new str[128];format(str, sizeof(str),\"Név: %s\", nev);TextDrawSetString(neved[playerid], str);return 1;}//Mód végérepublic Frissites(playerid){ GetPlayerName(playerid, nev, sizeof(nev)); new str[128]; format(str, sizeof(str),\"Név: %s\", nev); TextDrawSetString(neved[playerid], str); return 1;}