I need to learn!
#1

Hello everyone.
I have scripting knowledge, I already downloaded MANY filterscripts and tried to learn, even I was taking from other gamemodes, in how to make vehicle/dealership system with loadingvehicles using Y_ini, as I learned it needs LoadVehicles and SaveVehicles. I am here to request few informations about it, what you say will help me.
Thanks
Reply
#2

Y_INI isn't work cuz ****** left samp and didn't update the include
Reply
#3

Quote:
Originally Posted by nezo2001
Посмотреть сообщение
Y_INI isn't work cuz ****** left samp and didn't update the include
What? :/ you dont make sense lol.

OT: what exactly u need help with?
Reply
#4

Hmm, explain enum VehicleInfo, tell me how to make 3 vehicles slots and make an example buying command
Reply
#5

Bump^
Reply
#6

[Tutorial]Enumerators (enums). What they actually are?

SAMP Wiki
Reply
#7

How I can make /buycar command that creates an car for the typer?
Reply
#8

Uppp!
Reply
#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
#10

if you really read the topic good, you won't post this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)