25.06.2017, 23:53
Quote:
|
Me equivoque en 'SetTimer', era 'SetTimerEx'..
Code:
public OnPlayerRequestSpawn(playerid)
{
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;
for(new i; i<MAX_PLAYERS; i++)
{
if(cuenta[i][cAdmin])
{
KillTimer(ELTIMER[i]);
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(i, Conexion0);
TextDrawShowForPlayer(i, Conexion1);
TextDrawShowForPlayer(i, Conexion2);
TextDrawShowForPlayer(i, Conexion3);
ELTIMER[i] = SetTimerEx("TIMEFIX",5000,true,"i",i);
}
}
return 1;
}
|


