SA-MP Forums Archive
[FilterScript] Simple command for spawn vehicle - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Simple command for spawn vehicle (/showthread.php?tid=546138)



Simple command for spawn vehicle - Bratic - 13.11.2014

This is my first FS or more precisely one simple command with which you can create and destroy a vehicle of your choice only enter the vehicle ID you want to create a ex: /veh [ID vehicles] [Color 1] [Color 2], and to destroy the vehicle enter into it and typing /dtc

Download Link

- http://pastebin.com/6zEs2WDZ New Link avalaible with fix small bag's.

FS version v0.1 by Bratic


Re: Simple command for spawn vehicle - PedexM - 13.11.2014

Simple but Nice..


Re: Simple command for spawn vehicle - k0r - 13.11.2014

By looking your codes of your Filterscript, you are good at scripting.
Why don't you make something big?


Re: Simple command for spawn vehicle - GamingPro - 13.11.2014

Nice and simple!


Re: Simple command for spawn vehicle - Bratic - 13.11.2014

Quote:
Originally Posted by k0r
View Post
By looking your codes of your Filterscript, you are good at scripting.
Why don't you make something big?
I have a mod I'm doing this otherwise really do not have much time for it. But Thank You


Re: Simple command for spawn vehicle - Abagail - 13.11.2014

This doesn't even work. The reason you don't get compiler errors is because THE COMMANDS DON'T EVEN GET CALLED. You don't even include y_cmd. And, some things are just plain wrong,
pawn Code:
SendClientMessage(0xFFFFFFFF, string);
Should be:
pawn Code:
SendClientMessage(playerid, 0xFFFFFFFF, string);



Re: Simple command for spawn vehicle - Team_PRO - 13.11.2014

Might be good


Re: Simple command for spawn vehicle - Bratic - 13.11.2014

Quote:
Originally Posted by Abagail
View Post
This doesn't even work. The reason you don't get compiler errors is because THE COMMANDS DON'T EVEN GET CALLED. You don't even include y_cmd. And, some things are just plain wrong,
pawn Code:
SendClientMessage(0xFFFFFFFF, string);
Should be:
pawn Code:
SendClientMessage(playerid, 0xFFFFFFFF, string);
Ty i will be fix it


Re: Simple command for spawn vehicle - Abagail - 14.11.2014

Still won't compile. I get a lot of undefined symbols.
For instance,
SCM isn't defined. This can be resolved by defining it like so:
pawn Code:
#define SCM SendClientMessage
X, and GetName also aren't defined but I'm assuming you should be able to fix this as you made the filterscript. Unless, ofcourse, you simply /copy/ and pasted it from somewhere!


Re: Simple command for spawn vehicle - Bratic - 16.11.2014

Quote:
Originally Posted by Abagail
View Post
Still won't compile. I get a lot of undefined symbols.
For instance,
SCM isn't defined. This can be resolved by defining it like so:
pawn Code:
#define SCM SendClientMessage
X, and GetName also aren't defined but I'm assuming you should be able to fix this as you made the filterscript. Unless, ofcourse, you simply /copy/ and pasted it from somewhere!
Same situation as well as on my command /pm , I doing in my mode, and when something is not more popular I hang on to this forum. But ty on report.