Check Score help !
#1

hey all i have a problem i find a thread when i saw one code . it code was for Checking score and if you have example 25score you can use some skin but there is a bug . When i click on this skin its spawning me and then its showing me that this skin request to have 300 score so please help !

This is the script :



PHP код:
if(GetPlayerSkin(playerid) == 285 && GetPlayerScore(playerid) <  300) return SendClientMessage(playerid,COLOR_BLUE,"Trqbva da imash pone 300 score za da igraesh s tozi skin !");
if(
GetPlayerSkin(playerid) == 280 && GetPlayerScore(playerid) <  50) return SendClientMessage(playerid,COLOR_BLUE,"Trqbva da imash pone 25 score za da igraesh s tozi skin !");
if(
GetPlayerSkin(playerid) == 266 && GetPlayerScore(playerid) <  100) return SendClientMessage(playerid,COLOR_BLUE,"Trqbva da imash pone 50 score za da igraesh s tozi skin !");
if(
GetPlayerSkin(playerid) == 272 && GetPlayerScore(playerid) <  50) return SendClientMessage(playerid,COLOR_RED,"Trqbva da imash pone 25 score za da igraesh s tozi skin !");
if(
GetPlayerSkin(playerid) == 271 && GetPlayerScore(playerid) <  100) return SendClientMessage(playerid,COLOR_RED,"Trqbva da imash pone 50 score za da igraesh s tozi skin !");
if(
GetPlayerSkin(playerid) == 294 && GetPlayerScore(playerid) <  300) return SendClientMessage(playerid,COLOR_RED,"Trqbva da imash pone 300 score za da igraesh s tozi skin !"); 
Reply
#2

PHP код:
public OnPlayerRequestSpawn(playerid)
{
    if(
GetPlayerSkin(playerid) == 285 && GetPlayerScore(playerid) <  300)
    {
        
SendClientMessage(playerid,COLOR_BLUE,"Trqbva da imash pone 300 score za da igraesh s tozi skin !");
        return 
0;
    }
    if(
GetPlayerSkin(playerid) == 280 && GetPlayerScore(playerid) <  50)
    {
        
SendClientMessage(playerid,COLOR_BLUE,"Trqbva da imash pone 25 score za da igraesh s tozi skin !");
        return 
0;
    }
    if(
GetPlayerSkin(playerid) == 266 && GetPlayerScore(playerid) <  100)
    {
        
SendClientMessage(playerid,COLOR_BLUE,"Trqbva da imash pone 50 score za da igraesh s tozi skin !");
        return 
0;
    }
    if(
GetPlayerSkin(playerid) == 272 && GetPlayerScore(playerid) <  50)
    {
        
SendClientMessage(playerid,COLOR_RED,"Trqbva da imash pone 25 score za da igraesh s tozi skin !");
        return 
0;
    }
    if(
GetPlayerSkin(playerid) == 271 && GetPlayerScore(playerid) <  100)
    {
        
SendClientMessage(playerid,COLOR_RED,"Trqbva da imash pone 50 score za da igraesh s tozi skin !");
        return 
0;
    }
    if(
GetPlayerSkin(playerid) == 294 && GetPlayerScore(playerid) <  300)
    {
        
SendClientMessage(playerid,COLOR_RED,"Trqbva da imash pone 300 score za da igraesh s tozi skin !");
        return 
0;
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)