20.08.2011, 21:04
this is the code :
i want if the player do /joinstars , the system check score, if he has 800 in score , he can use this command
if not he can't do it
Please Help
Code:
if (strcmp("/joinstars", cmdtext, true, 10) == 0) { SetPlayerPos(playerid, -2239.9321,-1747.2985,480.8629); SetPlayerSkin(playerid, 287); gTeam[playerid] = TEAM_ARMY; ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid, 24, 100); GivePlayerWeapon(playerid, 26, 100); GivePlayerWeapon(playerid, 31, 500); SetPlayerColor(playerid,0x0000FFAA); SendClientMessage(playerid,0x0000FFAA," Welcome to the STARS QG!"); return 1; }
if not he can't do it
Please Help