05.08.2010, 17:24
I dont want check if registered!! what i want to du is this..
I am a new player.. i connect in the server i register.. now appears class selection i select mi skyn.. for example: 45..
now when i logout!! i enter again to the server.. but i dont want appears again class selection.. i want player spawn with skin 45!! or what skin he select.. i make this
onplayerspawn
ofcourse if i select another skin.. when spawn i appears with 45 the first skin i select on register!!..
but i dont whant appears class selection.. i want spawn automatic
I am a new player.. i connect in the server i register.. now appears class selection i select mi skyn.. for example: 45..
now when i logout!! i enter again to the server.. but i dont want appears again class selection.. i want player spawn with skin 45!! or what skin he select.. i make this
onplayerspawn
Код:
if(pinfo[playerid][spawned] == 0) { new pskin; pskin = GetPlayerSkin(playerid); MysqlUpdateCampoInt("jugadores", "nombre", pnombre, "spawned", 1); MysqlUpdateCampoInt("jugadores", "nombre", pnombre, "skin", pskin); } else { SetPlayerSkin(playerid, pinfo[playerid][skin]); }
but i dont whant appears class selection.. i want spawn automatic