Help me!
#1

And helped me with my order? When someone enters the server to write / armainfinita and be able to choose two free infinite weapons.

Thenk You.
Reply
#2

Wait what? So you want us to write a code for a player to get free weapon?
Reply
#3

yes write / armagratis and get 2 weapons infinite.
Reply
#4

I don't really know an efficient way of doing this, but you could use timers. For instance, when a player has a weapon A or B give him 1000 ammo of that weapon each second. But that would slow your server down and create lag
Reply
#5

Exemple /armainfinita:

http://postimg.org/image/81d7x6z6r/71030e0f/
http://postimg.org/image/5fxtcv2op/b5c93fc9/
http://postimg.org/image/olxidsjqj/0ddd0c29/
Reply
#6

pawn Код:
CMD:armainfinita(playerid, params)
{
      GivePlayerWeapon(playerid, Your weapon id, 9999);
      GivePlayerWeapon(playerid, Your Weapon id, 9999);
      SendClientMessage(playerid, "You have got your free weapons!");
}

Here
Reply
#7

Код:
C:\Documents and Settings\Madalin\Desktop\GM\gamemodes\Godfather.pwn(26409) : error 017: undefined symbol "armainfinita"
C:\Documents and Settings\Madalin\Desktop\GM\gamemodes\Godfather.pwn(26411) : error 017: undefined symbol "Your"
C:\Documents and Settings\Madalin\Desktop\GM\gamemodes\Godfather.pwn(26411) : error 017: undefined symbol "weapon"
C:\Documents and Settings\Madalin\Desktop\GM\gamemodes\Godfather.pwn(26411) : warning 215: expression has no effect
C:\Documents and Settings\Madalin\Desktop\GM\gamemodes\Godfather.pwn(26411) : warning 215: expression has no effect
C:\Documents and Settings\Madalin\Desktop\GM\gamemodes\Godfather.pwn(26411) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\Madalin\Desktop\GM\gamemodes\Godfather.pwn(26411) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


5 Errors.
I'm a beginner, what should I do?
Reply
#8

Quote:
Originally Posted by Madalyinn
Посмотреть сообщение
I'm a beginner, what should I do?
You should read the Forum Rules first. This is NOT a 'Scripting Request' section.

PS: You asked for a command and you got that, it's your fault that you didn't mention that you're using strcmp and use ******/SA-MP Wiki if you're beginner. It's going to help you to everything. I believe it's self-explanatory that you need to edit the weaponid to the weapons you want, the user above wrote "Your Weapon id" so you can change it yourself!
Reply
#9

Can you help me with it fs ? Please
Reply
#10

pawn Код:
CMD:armainfinita(playerid, params)
{
      GivePlayerWeapon(playerid, 24, 9999);
      GivePlayerWeapon(playerid, 32, 9999);
      SendClientMessage(playerid, 0xAA3333AA,"You have got your free weapons!");
}
Please learn basics from wiki.sa-mp.com
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)