30.04.2010, 23:28
I have a /weapon command for people who donated on my server. But the problem is, they can have as many weapons as they want when they type /weapon
How can i make it so they can only choose 3 weapons and are unable to choose anymore until they die and respawn?
Here's my /weapon command:
How can i make it so they can only choose 3 weapons and are unable to choose anymore until they die and respawn?
Here's my /weapon command:
pawn Код:
if (strcmp("/weapon", cmdtext, true, 10) == 0) // Shows Admin Command List
{
if(donator[playerid] == 1)
{
ShowPlayerDialog(playerid,DONATOR_DIALOG,2,"Choose a Weapon","Uzi\nAk47\nSawn-Off Shotgun\nTec9\nSMG\nCombat Shotgun","Buy","Cancel");
}
else
SendClientMessage(playerid,0xFF0000AA,"This Command is for Donators only, Donate to unlock it!");
return 1;
}