Car assign to variable
#1

Hi, how to car assign to variable? Example
Код:
new Infernus (modelid);
Код:
CMD:car(playerid)
{
SendClientMessage(playerid, COLOR_GREEN,"* You car model is %d", Infernus);
return 1;
}
Help me ;//
Reply
#2

Like, how to assign a car to a certain person?
Reply
#3

I ask this script...
Reply
#4

Here is the right code

pawn Код:
COMMAND:car(playerid, params[])
{
    new string[128];
    new vehicleid = GetVehicleModel(GetPlayerVehicleID(playerid));
    if(!IsPlayerInAnyVehicle(playerid)) SendClientMessage(playerid,-1,"You are not in a vehicle !");
    else
    {
        format(string, sizeof(string), "Your car model is %d", vehicleid);
        SendClientMessage(playerid, COLOR_GREEN, string);
    }
    return 1;
}
Reply
#5

I don't need this script...
Reply
#6

What do you need then?
Reply
#7

I think he needs a private vehicle system ... which is a bit complicated to make one yourself. Why don`t you use one already made, you can find few in FilterScript forums.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)