SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 02/09/2013, 01:23 AM   #1
luccagomes15
Huge Clucker
 
Join Date: Aug 2013
Posts: 392
Reputation: 0
Default Proibir G de desert eagle

No meu server da pra tu ficar de g nos carros de desert eagle, ai tu da H com ela fica igual uma metralhadora e explode o carro em uma rajada, mt zuado, eu queria bloquear entrar de G com desert, mas só de desert, como faz?
luccagomes15 is offline   Reply With Quote
Old 02/09/2013, 01:32 AM   #2
Coe1
High-roller
 
Coe1's Avatar
 
Join Date: Jul 2013
Posts: 1,043
Reputation: 86
Default Re: Proibir G de desert eagle

pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_PASSENGER)
    {
        if(GetPlayerWeapon(playerid) == 24)
        {
            GivePlayerWeapon(playerid, 1, 0);
            SendClientMessage(playerid, -1,"[ x ] A arma desert eagle foi removida. ");
            return 1;
        }
    }
    return 1;
}

Fiz um code bem rápido, porém, não testei.
Coe1 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] Anti Desert Eagle Drive-By Noss* Filterscripts 25 18/10/2013 12:59 PM
[Off] Desert Eagle Bug Jumper. Português/Portuguese 21 23/01/2013 07:37 PM
[Map] [MAP]-Desert Eagle Deathmatch. Zh3r0 Maps 8 10/01/2011 06:27 AM
Desert Eagle on roleplay servers - yay or nay? FoxtrotZulu General 41 07/04/2010 12:23 PM


All times are GMT. The time now is 05:19 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.