I Need Help
#1

How I Add paintjob Cars In Server ? Help me
Reply
#2

Quote:
Originally Posted by Las Venturas CNR
Посмотреть сообщение
Use the function ChangeVehiclePaintjob.
Or, when you create vehicles, here's what to do:

AddStaticVehicle form params - (modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: angle, color1, color2)

AddStaticVehicleEx form params - (modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: angle, color1, color2, respawn_delay)

CreateVehicle form params - (modelid, Float: x, Float: y, Float:z, Float: angle, color1, color2, respawn_delay)

Where you see 'color1' and 'color2', replace those with color ID's you can choose from here:

or use '-1, -1' to make random vehicle color
Reply
#3

and how i add roof spoiler and bumpers
Reply
#4

I cant undersatand
Look its my vehicle position
Quote:

AddStaticVehicleEx(562,2303.9661,1408.4199,42.4781 ,266.3732,215,93); //

Now how i add componets to this car ? how
Reply
#5

Quote:
Originally Posted by Salsa
Посмотреть сообщение
I cant undersatand
Look its my vehicle position

Now how i add componets to this car ? how
Read the examples provided by https://sampwiki.blast.hk/wiki/Function:AddVehicleComponent and you'll understand what he meant.
Reply
#6

thanks You Very Much Sir Las Venturas CNR its Done cars Are Added
Reply
#7

SORRY but i have another problem see this


Quote:

C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(1030) : warning 225: unreachable code
C:\Documents and Settings\Kapil\Desktop\samp03\samp03\gamemodes\lvd m.pwn(2621) : warning 225: unreachable code
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 5320 bytes
Code size: 2936672 bytes
Data size: 312928 bytes
Stack/heap size: 16384 bytes; estimated max. usage=6484 cells (25936 bytes)
Total requirements: 3271304 bytes

2 Warnings.

WARNING ON THIS LINE
Quote:

2621 GetPlayerName(playerid,name,MAX_PLAYER_NAME);

Reply
#8

Seeeee Thats the line
Quote:

if(strcmp(cmdtext,"/sh",true)==0)
{
new vehicleid = GetPlayerVehicleID(playerid);
new State = GetPlayerState(playerid);
new name[MAX_PLAYER_NAME];
new msg[256];
if(IsPlayerInAnyVehicle(playerid) && State == PLAYER_STATE_DRIVER)
{
GameTextForPlayer(playerid,"Welcome to Owners Brother Suresh Kumar House",4000,6);
return SetVehiclePos(vehicleid,2867.7622, -352.2503, 6.0000);
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(msg, sizeof(msg), "TELE: %s has gone to Admin Suresh Kumar's House(/sh)",name,playerid);
SendClientMessageToAll(COLOR_GREEN,msg);
}
SetPlayerPos(playerid,2867.7622, -352.2503, 6.0000);
GameTextForPlayer(playerid,"Welcome to Owners Brother Suresh Kumar's House",4000,6);
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
format(msg, sizeof(msg), "TELE: %s has gone to Admin Suresh Kumar's House(/sh)",name,playerid);
SendClientMessageToAll(COLOR_GREEN,msg);
return 1;
}

Reply
#9

its fixxx thanx brother i will never forgot your help

Now 1 warning remeaning

This is the code of 2nd warning

Quote:

if(strcmp(cmdtext, "/gangcommands", true) == 0)
{
new xd[768];
new message[] = "\t\t\t\t\t\t SampEver Party Server Gang Commands \n\n\n\n\n\n 1- To Create A New Gang Use : /gang create [name]\n\n 2- To Invite Someone To Your Gang Use : /gang invite [playerID].";
new message2[] = "\n\n 3- To Join Any Gang Use : /gang join.\n\n 4- To See Your Gang Stats Use : /ganginfo [number] {Note : no number given shows your gang's info } \n\n 5- To Check Your Gang Money Use : /gbank [money] , /gwithdraw [money] ,/gbalance ";
format(xd, sizeof(xd),"%s %s",message,message2);
ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX, "SampEver Party Server Gangs Commands", xd,"Okay", "");
return 1;
}
}

Reply
#10

pawn Код:
if(strcmp(cmdtext, "/gangcommands", true) == 0)
{
new xd[768];
new message[] = {"\t\t\t\t\t\t SampEver Party Server Gang Commands \n\n\n\n\n\n 1- To Create A New Gang Use : /gang create [name]\n\n 2- To Invite Someone To Your Gang Use : /gang invite [playerID]."};
new message2[] = {"\n\n 3- To Join Any Gang Use : /gang join.\n\n 4- To See Your Gang Stats Use : /ganginfo [number] {Note : no number given shows your gang's info } \n\n 5- To Check Your Gang Money Use : /gbank [money] , /gwithdraw [money] ,/gbalance "};
format(xd, sizeof(xd),"%s %s",message,message2);
ShowPlayerDialog(playerid, 1244, DIALOG_STYLE_MSGBOX, "SampEver Party Server Gangs Commands", xd,"Okay", "");
return 1;
}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)