25.06.2017, 16:17
PHP код:
public OnPlayerRequestSpawn(playerid)
{
cuenta[playerid][pSkin] = GetPlayerSkin(playerid);
cuenta[playerid][tmpSkin] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid, cuenta[playerid][pSkin]);
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);
SetTimerEx("TimeFix", 2000, false, "i", playerid);
}
return 1;
}