[pawn]#include <a_samp>
#define MentesIdo 5
new TobbszorKell = true; //Ha minden 5 mp-ben kell, true, ha nem, false
forward JatekosMentes(jatekosid); public JatekosMentes(jatekosid)
{
if(IsPlayerConnected(jatekosid)&&!IsPlayerNPC(jatekosid))
{
new playername3[MAX_PLAYER_NAME];
GetPlayerName(jatekosid, playername3, sizeof(playername3));
new pIp[128];
GetPlayerIp(jatekosid, pIp, sizeof(pIp));
new query2[500];
format(query2, 500, \"UPDATE `userek` SET IP=\'1\' WHERE jatekosnev=\'%s\'\",pIp,playername3);
mysql_query(query2);
return true;
}
return false;
}
public OnPlayerSpawn(playerid)
{
SetTimerEx(\"JatekosMentes\",MentesIdo*1000,TobbszorKell,\"d\",playerid);
}[/pawn]