SA-MP Forums Archive
Help me! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me! (/showthread.php?tid=475682)



Help me! - Madalyinn - 14.11.2013

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.


Re: Help me! - vakhtang - 14.11.2013

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


Re: Help me! - Madalyinn - 14.11.2013

yes write / armagratis and get 2 weapons infinite.


Re: Help me! - vakhtang - 14.11.2013

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


Re: Help me! - Madalyinn - 14.11.2013

Exemple /armainfinita:

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


Re: Help me! - Jankingston - 14.11.2013

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


Re: Help me! - Madalyinn - 14.11.2013

Код:
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?


Re: Help me! - Konstantinos - 14.11.2013

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!


Re: Help me! - Madalyinn - 14.11.2013

Can you help me with it fs ? Please


Re: Help me! - Sands - 14.11.2013

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