Vehicle spawn script.
#1

I need a bit of help for a command such as:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/v (name)", cmdtext, true) == 0)
{
CreateVehicle(vehicletype, Float, Float:y, Float:z, Float:rotation, color1, color2, respawn_time);
SendClientMessage(playerid, 0xFFFFFFFF, "You spawned a (v name)!");
return 1;
}

so that it creates a vehicle right infront of the player. Can anyonne please help me?
im not realy shure if the command above is right...
Reply


Messages In This Thread
Vehicle spawn script. - by ThePwherer - 09.11.2010, 15:49
Re: Vehicle spawn script. - by Brian_Furious - 09.11.2010, 16:09
Re: Vehicle spawn script. - by Kwarde - 09.11.2010, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)