// - [ Ez egy pozíció mutató script! Created By: Flash ] -#include a_samp#include zcmdnewPlayerText:poz,Float:p[4],string[128];public OnFilterScriptInit() { SetTimer(\"ShowPoz\", 800, true); return 1; }public OnPlayerConnect(playerid) {poz = CreatePlayerTextDraw(playerid, 635, 439, \"512.156561, 5125.25612, 28.512344, 0.0\");PlayerTextDrawAlignment(playerid, poz, 3);PlayerTextDrawBackgroundColor(playerid, poz, 255);PlayerTextDrawFont(playerid, poz, 1);PlayerTextDrawLetterSize(playerid, poz, 0.260000, 0.699999);PlayerTextDrawColor(playerid, poz, -1);PlayerTextDrawSetOutline(playerid, poz, 1);PlayerTextDrawSetProportional(playerid, poz, 1);PlayerTextDrawHide(playerid, poz);SetPVarInt(playerid, \"PozShow\", 0);return 1;}forward ShowPoz();public ShowPoz() {for(new i; i < MAX_PLAYERS; i++) {if(!IsPlayerConnected(i) || !GetPVarInt(i, \"PozShow\")) continue;GetPlayerPos(i, p[0], p[1], p[2]);GetPlayerFacingAngle(i, p[3]);format(string, sizeof(string), \"%f, %f, %f, %f\", p[0], p[1], p[2], p[3]);PlayerTextDrawSetString(i, poz, string);}return 1;}CMD:poz(playerid) {if(!GetPVarInt(playerid, \"PozShow\")) {SetPVarInt(playerid, \"PozShow\", 1);PlayerTextDrawShow(playerid, poz);}else{SetPVarInt(playerid, \"PozShow\", 0);PlayerTextDrawHide(playerid, poz);}string[0] = EOS;format(string, sizeof(string), \"Pozíciómérõ %skapcsolva!\",(GetPVarInt(playerid, \"PozShow\") ? (\"be\") : (\"ki\")));SendClientMessage(playerid, -1, string);return 1;}
public OnFilterScriptInit() { SetTimer(\"ShowPoz\", 800, true); return 1; }forward ShowPoz();public ShowPoz() // A funkció ami 800 ms -ként meghívásra kerül.{ for(new i; i < MAX_PLAYERS; i++) // A for ciklus mellyel ellenõrzöd ki online az IsPlayerConnected segítségével. { if(IsPlayerConnected(i) || GetPVarInt(i, \"PozShow\")) { // Mi történjen az online játékossal.