28.05.2011, 21:14
Galera queria saber oque estб de errado no OnPlayerSpawn porque quando boto um cara de lv 3 de RRB = Repуrter quando ele morre volta pra level 1
OBS: Meu OnPlayerDeath nгo tem nenhum code!
Код:
if(levelrrb[playerid] >= 1 || PlayerInfo[playerid][pRRB] >= 1) { //REPУRTERES SetPlayerInterior(playerid,0); SetPlayerPos(playerid,749.1455,-1346.5336,13.5140); GameTextForPlayer(playerid,"~W~BEM VINDO~h~ ~y~Reporter !", 1000,1); GivePlayerWeapon(playerid,24,999999); GivePlayerWeapon(playerid,27,999999); GivePlayerWeapon(playerid,29,999999); GivePlayerWeapon(playerid,30,999999); GivePlayerWeapon(playerid,34,999999); GivePlayerWeapon(playerid,0,999999); SetPlayerArmour(playerid, 300.0); SetPlayerColor(playerid, COR_RRB); SetPlayerSkin(playerid, 187); SetPlayerHealth(playerid, 300.0); SetPlayerVirtualWorld(playerid, 0); TogglePlayerControllable(playerid,1); SendClientMessage(playerid, COLOR_WHITE, "Use /comandosrrb, para ver os comandos de Repуrter!"); //levelrrb[playerid] = 1; PlayerInfo[playerid][pRRB] = 1; GetPlayerName(playerid, sendername, sizeof(sendername)); return dini_IntSet(udb_encode(sendername), "levelrrb", levelrrb[playerid]); }