01.08.2010, 14:14
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 basic like that