one Question - 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: one Question (
/showthread.php?tid=660267)
one Question -
nbx2000 - 29.10.2018
Is it possible to modify so that the ranges are possible? getplayerscore ?
stock GetvpFromLevel(playerid)
{
new vp[40];
switch(PlayerInfo[playerid][score])
{
case 0:
{
vp = "Player";
}
case 1:
{
vp = "Rank 1";
}
case 2:
{
vp = "Rank 2";
}
case 3:
{
vp = "Rank 3";
}
case 4:
{
vp = "pro";
}
case 5:
{
vp = "killer noob 5";
}
case 6:
{
vp = "killer pro6";
}
}
return vp;
}
Re: one Question -
g1venchy - 29.10.2018
PHP код:
stock GetvpFromLevel(playerid)
{
new vp[40];
switch(PlayerInfo[playerid][score])
{
case 0..10: vp = "Player";
case 11..20:vp = "Rank 1";
case 21..30:vp = "Rank 2";
case 31..40:vp = "Rank 3";
case 41..50:vp = "pro";
case 51..60:vp = "killer noob 5";
case 61..70:vp = "killer pro6";
}
return vp;
}