15.11.2014, 09:06
Hey, im trying to create level system. But im kinda noob at pawno, su could you help me? I try to create my own, but im not sure if its good. Here :
Is this a good system? What can be improved?
Код HTML:
SetTimer("Check", 1000, true);
Код HTML:
forward Check(playerid); public Check(playerid) { if(GetPlayerScore(playerid)>=0) { Lvl1[playerid]=true; PlayerTextDrawShow(playerid, Level1[playerid]); } if(GetPlayerScore(playerid)>=150) { Lvl2[playerid]=true; PlayerTextDrawDestroy(playerid, Level1[playerid]); PlayerTextDrawShow(playerid, Level2[playerid]); } if(GetPlayerScore(playerid)>=400) { Lvl3[playerid]=true; PlayerTextDrawDestroy(playerid, Level2[playerid]); PlayerTextDrawShow(playerid, Level3[playerid]); }