I need to learn!
#9

If you need something like Vehicle system,please search the forum.

Here is /v(ehicle) command which creates vehicle of model which you want with colors 1-2 near your position.

PHP код:
#include <a_samp>
#include <zcmd> 
#include <sscanf2>
#define COLOR_BLUE  "{00C0FF}" // We are defining color blue which we are going to use late.
CMD:v(playerid,params[])
{
    new 
IDvehicle,color1,color2Float:x,Float:y,Float:z;
    if(
sscanf(params,"iii",IDvehicle,color1,color2)) return SendClientMessage(playerid,-1,"Syntax | /v (vehicleid) (color1) (color2)");
    if(
IDvehicle 400 || IDvehicle 611) return SendClientMessage(playerid, -1,"{F81414}Greska:{FFFFFF} Odaberite ID vozila izmedu [400-611]");
    if(
color1 || color1 255) return SendClientMessage(playerid, -1,"{F81414}Greska:{FFFFFF} Odaberite boju(1) izmedu [0-255]");
    if(
color2 || color2 255) return SendClientMessage(playerid, -1,"{F81414}Greska:{FFFFFF} Odaberite boju(2) izmedu [0-255]");
    
GetPlayerPos(playeridxyz); // We are taking player's position.
    
CreateVehicle(IDvehicle3yz0color1,color2, -1); // Here we created vehicle on player's position
    
SendClientMessage(playerid, -1"{00C0FF}SERVER:{FFFFFF} You created vehicle on your position.");
    return 
1;

For this to work you will need sscanf and zcmd:

LINKS:

ZCMD - https://sampforum.blast.hk/showthread.php?tid=91354
SSCANF2 - https://sampforum.blast.hk/showthread.php?tid=570927

If you want to add some more colors : www.colorpicker.com

Model of vehicles you can find here: https://sampwiki.blast.hk/wiki/Vehicle_Model_ID_List
Colors you can find here: https://sampwiki.blast.hk/wiki/Hidden_Colour_ID%27s
Reply


Messages In This Thread
I need to learn! - by Rabea - 06.06.2015, 11:44
Re: I need to learn! - by nezo2001 - 06.06.2015, 11:46
Re: I need to learn! - by Ritzy2K - 06.06.2015, 11:52
Re: I need to learn! - by Rabea - 06.06.2015, 12:33
Re: I need to learn! - by Rabea - 06.06.2015, 15:47
Re: I need to learn! - by Yashas - 06.06.2015, 16:28
Re: I need to learn! - by Rabea - 06.06.2015, 17:26
Re: I need to learn! - by Rabea - 07.06.2015, 07:26
Re: I need to learn! - by NoDi522 - 07.06.2015, 07:38
Re: I need to learn! - by Rabea - 07.06.2015, 14:35

Forum Jump:


Users browsing this thread: 1 Guest(s)