16.04.2009, 11:15
Hey
I want to spawn a vehicle in front of a player how wrote a command
I got that:
I tought to CreateVehicle,but I don't think it will work,and I don't know how to set the position of the vehicle in function of the player's position
TIA
PS:Sorry for my english,i'm french
I want to spawn a vehicle in front of a player how wrote a command
I got that:
Код:
if(strcmp(cmdtext, "/mycar", true)==0)
{
switch(GetPlayerRank(playerid))
{
case 0:
{
SendClientMessage(playerid, 0xFFFFFFFF, "Sorry,no car for you");
}
case 1:
{
//Create vehicle
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your Perenniel"); //404
}
case 2:
{
//..
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your Sentinel"); //405
}
case 3:
{
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your Previon"); //436
}
case 4:
{
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your Stallion"); //439
}
case 5:
{
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your Saber"); //475
}
case 6:
{
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your ZR-350"); //477
}
case 7:
{
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your Hotknife"); //434
}
case 8:
{
SendClientMessage(playerid, 0xFFFFFFFF, "Hope you'll enjoy your Turismo"); //451
}
}
TIA
PS:Sorry for my english,i'm french


I can't move 