public OnPlayerUpdate(playerid)
{
if(pData[playerid][pDonator] == 0) //If their VIP level is greater than 0 (AKA They are a VIP)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
}
else
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
}
PHP код:
it was working fine before idk what's wrong now. Do you see something wrong here? |
public OnPlayerUpdate(playerid)
{
if(pData[playerid][pDonator] == 0) //If their VIP level is greater than 0 (AKA They are a VIP)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 0);
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 0);
}
else
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
}
if(pData[playerid][pDonator] == 0) //If their VIP level is greater than 0 (AKA They are a VIP) {
if(pData[playerid][pDonator] >= 1) //If their VIP level is greater than 0 (AKA They are a VIP) {
if(pData[playerid][pDonator] == 0) //If their VIP level is greater than 0 (AKA They are a VIP)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
}
if(pData[playerid][pDonator] > 0) //If their VIP level is greater than 0 (AKA They are a VIP)
{
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 999);
}