12.05.2012, 23:39
hello im making a admin FS and in a weapon dialog when i spawn a mini gun the server kicks me
so i dont know if its a problem with the script or 0.3e has a built in anti cheat
here is my code
so i dont know if its a problem with the script or 0.3e has a built in anti cheat
here is my code
pawn Код:
if (strcmp("/weps", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid)) return 0;
}
ShowPlayerDialog(playerid, DIALOGW, DIALOG_STYLE_LIST, "{FF0000}weapons", "{00FF00}9mm\n{00FF00}Silenced 9mm\n{00FF00}Desert Eagle\n{00FF00}Tec-9\n{00FF00}Micro SMG\n{00FF00}SMG\n{00FF00}Shotgun\n{00FF00}Sawnoff Shotgun\n{00FF00}Combat Shotgun\n{00FF00}M4\n{00FF00}Ak47\n{00FF00}Sniper Rifle\n{00FF00}Molotov Cocktail\n{00FF00}Grenade\n{00FF00}Remote Explosives\n{00FF00}Mini Gun\n{00FF00}Rocket Launcher", "ok", "cancel");
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)// They pressed the first button.
{
if(dialogid == DIALOGW)
{
if(response)
{
switch(listitem)// Checking which listitem was selected
{
case 0:
{
GivePlayerWeapon(playerid, 22, 1000);
}
case 1:
{
GivePlayerWeapon(playerid, 23, 1000);
}
case 2:
{
GivePlayerWeapon(playerid, 24, 1000);
}
case 3:
{
GivePlayerWeapon(playerid, 32, 1000);
}
case 4:
{
GivePlayerWeapon(playerid, 28, 1000);
}
case 5:
{
GivePlayerWeapon(playerid, 29, 1000);
}
case 6:
{
GivePlayerWeapon(playerid, 25, 1000);
}
case 7:
{
GivePlayerWeapon(playerid, 26, 1000);
}
case 8:
{
GivePlayerWeapon(playerid, 27, 1000);
}
case 9:
{
GivePlayerWeapon(playerid, 31, 1000);
}
case 10:
{
GivePlayerWeapon(playerid, 30, 1000);
}
case 11:
{
GivePlayerWeapon(playerid, 34, 1000);
}
case 12:
{
GivePlayerWeapon(playerid, 18, 1000);
}
case 13:
{
GivePlayerWeapon(playerid, 16, 1000);
}
case 14:
{
GivePlayerWeapon(playerid, 39, 1000);
}
case 15:
{
GivePlayerWeapon(playerid, 38, 1000);
}
case 16:
{
GivePlayerWeapon(playerid, 35, 1000);
}
}
} }
}
return 1;