09.10.2007, 00:56
Please help i have no clue where to begin a command that will pull people into your car.
AttachTrailerToVehicle(trailerid, vehicleid);
|
Originally Posted by [LSB
X_Cutter ]
Towlies, I think he means to put someone in your car using a command. ![]() |
if(strcmp(cmd, "/pullincar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /pullincar [player id]");
return 1;
}
new person;
person = strval(tmp);
new playerVehicle = GetPlayerVehicleID(playerid);
PutPlayerInVehicle(person, playerVehicle, 3);
}
return 1;
}
|
Originally Posted by Battleskull
thank you i will try it
![]() |