SA-MP Forums Archive
Some commands - 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: Some commands (/showthread.php?tid=378441)



Some commands - CrazyManiac - 17.09.2012

Hello everyone. I want to make a few commands for my server, but i dont know how to make them. Could anyone help me with (one of) these commands? I want a lot of commands, and you dont need to make them all for me, but i hope you can help me with some of them.

1. A /rape [ID] command. When someone types /rape (inserted id), the inserted ID will loose 10 HP every 20 Seconds. When a player types /rape [inserted ID], the system will first check if the inserted ID is in range, and if there is a player with the ID. If the ID doesnt exists, or its not in range, nothing will happen.


2. A /usedrugs command. When someone types /usedrugs, he will get +15 Armor. He can only use this command every 10 minutes.

3. A /sellcar command. When someone types /sellcar, he will earn $20.000. The car that he's in, will be removed. Before someone types /sellcar, the system first checks if he is in a car. If he's not, then nothing happens.

4. A /taze [ID] command. When someone types /taze (inserted id), the inserted ID will be frozen for 20 Seconds. After 20 seconds, he will get unfrozen. When a player types /taze [inserted ID], the system will first check if the inserted ID is in range, and if there is a player with the ID. If the ID doesnt exists, or its not in range, nothing will happen.


Greetings, CrazyManiac.