11.09.2011, 02:03
How I Add paintjob Cars In Server ? Help me
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: |
AddStaticVehicleEx(562,2303.9661,1408.4199,42.4781 ,266.3732,215,93); // |
I cant undersatand
Look its my vehicle position Now how i add componets to this car ? how |
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. |
2621 GetPlayerName(playerid,name,MAX_PLAYER_NAME); |
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; } |
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; } } |
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;
}
}