09.11.2010, 15:49
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...
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...