18.02.2018, 15:15
Quote:
Provavelmente vocк tб mostrando o dialog na OnPlayerSpawn, ela й chamada toda vez que o player spawna/respawna, se eu fosse vocк usaria o dialog na OnPlayerRequestClass. Caso esse nгo seja o caso, poste o cуdigo da OnPlayerDeath.
|
Essa й a OnPlayerSpawn
PHP код:
public OnPlayerSpawn(playerid)
{
Spawned[playerid] = 1;
PlayerInfo[playerid][pMute] = 0;
PlayerPlaySound(playerid,1063,0.0,0.0,0.0);
PlayerPlaySound(playerid,30802,0.0,0.0,0.0);
// SetPlayerSkin(playerid,PlayerInfo[playerid][pSkin]);
if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 30){
GivePlayerWeapon(playerid, 24, 500);
}
if(GetPlayerScore(playerid) >= 30 && GetPlayerScore(playerid) <= 80){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
}
if(GetPlayerScore(playerid) >= 80 && GetPlayerScore(playerid) <= 150){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 29, 500);
}
if(GetPlayerScore(playerid) >= 150 && GetPlayerScore(playerid) <= 230){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 29, 500);
}
if(GetPlayerScore(playerid) >= 230 && GetPlayerScore(playerid) <= 320){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 30, 1500);
SetPlayerArmour(playerid, 20);
}
if(GetPlayerScore(playerid) >= 320 && GetPlayerScore(playerid) <= 450){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 31, 1500);
SetPlayerArmour(playerid, 20);
}
if(GetPlayerScore(playerid) >= 450 && GetPlayerScore(playerid) <= 700){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 27, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 31, 1500);
SetPlayerArmour(playerid, 20);
}
if(GetPlayerScore(playerid) >= 700 && GetPlayerScore(playerid) <= 1000){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 27, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 31, 1500);
SetPlayerArmour(playerid, 60);
}
if(GetPlayerScore(playerid) >= 1000 && GetPlayerScore(playerid) <= 1337){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 27, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 34, 90);
GivePlayerWeapon(playerid, 31, 1500);
SetPlayerArmour(playerid, 60);
}
if(GetPlayerScore(playerid) >= 1337 && GetPlayerScore(playerid) <= 9999999){
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 27, 500);
GivePlayerWeapon(playerid, 29, 500);
GivePlayerWeapon(playerid, 34, 90);
GivePlayerWeapon(playerid, 31, 1500);
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 37, 5);
}
return 1;
}