27.09.2015, 07:31
I was making an Xp system the it's quite worked!
But...
The problem is :
When i have any Xp i can spawn as any class like i have 10 xp and the army needs 20000 xp but i can still spawn as army man!
Please help me!
Thanks!
Ironmen
But...
The problem is :
When i have any Xp i can spawn as any class like i have 10 xp and the army needs 20000 xp but i can still spawn as army man!
Код:
public OnPlayerRequestSpawn(playerid) { if(GetPlayerSkin(playerid) == 287) { if(XP[playerid] <= 20000) SpawnPlayer(playerid); else SendClientMessage(playerid, COLOR_RED, "You need 20000 Xp or more to be an Army Man!"); } }
Thanks!
Ironmen