25.06.2017, 19:47
HTML Code:
public OnPlayerRequestSpawn(playerid) { KillTimer(ELTIMER); cuenta[playerid][cSkin] = GetPlayerSkin(playerid); cuenta[playerid][tmpSkin] = GetPlayerSkin(playerid); SetPlayerSkin(playerid, cuenta[playerid][cSkin]); SetPlayerSkin(playerid, cuenta[playerid][tmpSkin]); cuenta[playerid][request] = REQUEST_INGRESO; if(cuenta[playerid][cAdmin]) //Esto indica que sн la variable de administrador estб seteada a un nъmero mayor que 0 ejecutarб esas funciones. { new Nombrex[MAX_PLAYER_NAME],string[25]; GetPlayerName(playerid,Nombrex,sizeof(Nombrex)); format(string,sizeof(string),"%s",Nombrex); TextDrawSetString(Conexion1,string); TextDrawSetPreviewModel(Conexion3, GetPlayerSkin(playerid)); TextDrawShowForPlayer(playerid, Conexion0); TextDrawShowForPlayer(playerid, Conexion1); TextDrawShowForPlayer(playerid, Conexion2); TextDrawShowForPlayer(playerid, Conexion3); ELTIMER = SetTimer("TIMEFIX",5000,true); } return 1; } forward TIMEFIX(playerid); public TIMEFIX(playerid) { TextDrawHideForPlayer(playerid, Conexion0); TextDrawHideForPlayer(playerid, Conexion1); TextDrawHideForPlayer(playerid, Conexion2); TextDrawHideForPlayer(playerid, Conexion3); return 1; }