Posts: 188
Threads: 61
Joined: Nov 2012
Hallo....
How can i make a command with a_samp so if he not have the wanted level 2 he Can not use that command.
He need wanted level 2 for use a the command?
Posts: 188
Threads: 61
Joined: Nov 2012
It works in my commands but in my dialog with buy weapons Will it not work?
Its is to my dialog
Posts: 188
Threads: 61
Joined: Nov 2012
O.K...
But if i only want to have one of them like.
Код:
if(dialogid == DIALOG_BUYWEAPONS)
{
if(response) // If they clicked 'Select' or double-clicked a weapon
{
// Give them the weapon
if(listitem == 0) // They selected the first item - Desert Eagle
{
GivePlayerWeapon(playerid, WEAPON_DEAGLE, 50); // Give them a desert eagle
}
if(listitem == 1) // They selected the second item - AK-47
{
GivePlayerWeapon(playerid, 22, 50); // Give them an AK-47
}
if(listitem == 2) // They selected the third item - Desert Eagle
{
GivePlayerWeapon(playerid, 31, 750); // Give them a Combat Shotgun
if(GetPlayerWantedLevel(playerid) > 2)
}
}
return 1;
}
But it will not work for me i get a error:
PHP код:
C:\Users\Canip\Desktop\Samp server\filterscripts\Gates.pwn(467) : error 036: empty statement