car help
#1

Hello !

How to do this:

1 - /SellCar - Checking if the player bought a vehicle from a dialog and Destroy it , And if he dosen't bought a vehicle from a dialog , it will be send a client massage: you dont have any vehicle!



2 - When he/she bought a vehicle , i have a 3dtextlabel , but i want a 3dtextlabel with the player name. [who bought it].


Sorry for my very bed english :P


Reply
#2

It's very hard to help you if you don't post your current code, please post the code from your /sellcar and the dialog (1) and the code where you create the 3DTextLabel (2).
Reply
#3

Quote:
Originally Posted by Conradus
Посмотреть сообщение
It's very hard to help you if you don't post your current code, please post the code from your /sellcar and the dialog (1) and the code where you create the 3DTextLabel (2).
on dialog response:
PHP код:
                   if(listitem == 0)
                        {
                            if(
Access[playerid] == 1) return SendClientMessage(playerid,COLOR_RED,"!йщ мк лбш шлб");
                               if(
GetPlayerMoney(playerid) < 10000000) return SendClientMessage(playeridCOLOR_RED"[10,000,000] !айп мк осфйч лсу мчрййъ шлб жд");
                            
GivePlayerMoney(playerid, -10000000);
                            
veh1 CreateVehicle(411, -1981.7805267.707335.1719179.5517, -1, -1, -1);
                            
Access[playerid] = 1;
                            
PutPlayerInVehicle(playeridveh10);
                            
vehicle3Dtext[veh1] = Create3DTextLabel"{FF8040}[{00FFFF}Infernus{FF8040}] - шлб жд деа айрфшрес\n{ECD742}/CarShop - зреъ шлбйн ойезгйн"COLOR_GREEN0.00.00.050.00);
                            
Attach3DTextLabelToVehiclevehicle3Dtext[veh1] , veh10.00.01.0);
                            new 
string[64], pName[MAX_PLAYER_NAME];
                            
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
                            
format(string,sizeof string,"!озреъ дшлбйн дойезгйн , ъъзгщ Infernus чрд аъ дшлб %s дщзчп",pName);
                            
SendClientMessageToAll(0x00FFFFFF,string);
                            
AddVehicleComponent(veh11010);
                            
AddVehicleComponent(veh11087);
                            
AddVehicleComponent(veh11080);
                            
ChangeVehicleColor(veh130);
                         } 
and , i need to create /SellCar , because of this i asking here.
Reply
#4

bump.
Reply
#5

bump.
Reply
#6

bump.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)