Check Score help ! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Check Score help ! (
/showthread.php?tid=414860)
Check Score help ! -
JoroApostolov - 10.02.2013
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 !");
Re: Check Score help ! -
S0n1COwnsYou - 11.02.2013
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;
}