know someone
#1

How to make a car buyable!
Reply
#2

i was thinking about doing that lol buuut im having a little trouble, if no one gets you anything by time im done i lend you
Reply
#3

pawn Код:
veh = CreateVehicle(blah blah)
SetVehicleParams(veh, 1);

public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/yourcommand", cmdtext) == 0)
{
GivePlayerMoney(playerid, -yourprice (with minus);
DestroyVehicle(veh);
new Float:x, Float:y, Float:z
GetPlayerPos(playerid, x, y, z);
CreateVehicle(blah, x+5, y+5, z);
}
Something like that, thats really really basic though lol

Something basic like that
Reply
#4

Quote:
Originally Posted by funky1234
Посмотреть сообщение
pawn Код:
veh = CreateVehicle(blah blah)
SetVehicleParams(veh, 1);

public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/yourcommand", cmdtext) == 0)
{
GivePlayerMoney(playerid, -yourprice (with minus);
DestroyVehicle(veh);
new Float:x, Float:y, Float:z
GetPlayerPos(playerid, x, y, z);
CreateVehicle(blah, x+5, y+5, z);
}
Something like that, thats really really basic though lol

Something basic like that
thanks
but where should I put in my script?
Reply
#5

[pawn]
// at top
veh = CreateVehicle(blah blah)
SetVehicleParams(veh, 1);

//OnPlayerCommandText duh
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/yourcommand", cmdtext) == 0)
{
GivePlayerMoney(playerid, -yourprice (with minus);
DestroyVehicle(veh);
new Float, Float:y, Float:z
GetPlayerPos(playerid, x, y, z);
CreateVehicle(blah, x+5, y+5, z);
}
Reply
#6

Quote:
Originally Posted by willsuckformoney
Посмотреть сообщение
[pawn]
// at top
veh = CreateVehicle(blah blah)
SetVehicleParams(veh, 1);

//OnPlayerCommandText duh
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp("/yourcommand", cmdtext) == 0)
{
GivePlayerMoney(playerid, -yourprice (with minus);
DestroyVehicle(veh);
new Float, Float:y, Float:z
GetPlayerPos(playerid, x, y, z);
CreateVehicle(blah, x+5, y+5, z);
}
thanks verry match
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)