PutPlayerInVehicle(vehicleid, playerid, seatid);
if(strcmp(cmd, "/yadayada", true) == 0) {
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
CreateVehicle(520, x, y, z, 82.2873, 0, 1, 60);
return 1;
}
|
Originally Posted by kylebrown
thanks
just one more qustion how whould i put this in to this Код:
if(strcmp(cmd, "/yadayada", true) == 0) {
new Float:x, Float:y, Float:z, vehicle;
GetPlayerPos(playerid, x, y, z);
vehicle = CreateVehicle(520, x, y, z, 82.2873, 0, 1, 60);
PutPlayerInVehicle(vehicle, playerid, 0);
return 1;
}
|
if(strcmp(cmd, "/Hydra", true) == 0) {
new Float:x, Float:y, Float:z, vehicle;
GetPlayerPos(playerid, x, y, z);
vehicle = CreateVehicle(520, x, y, z, 82.2873, 0, 1, 60);
PutPlayerInVehicle(vehicle, playerid, 0);
return 1;
}
if(strcmp(cmd, "/Hydra", true) == 0)
{
new Float:x, Float:y, Float:z, vehicle;
GetPlayerPos(playerid, x, y, z);
PutPlayerInVehicle(playerid,CreateVehicle(520, x, y, z, 82.2873, 0, 1, 60),0);
return 1;
}
|
Originally Posted by lolumadd [cod5server.tk
]
pawn Код:
1 is front passenger 2 & 3 are the back two seats (if available) |
public OnPlayerExitVehicle
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
|
Originally Posted by kylebrown
thanks and it work! yay
How do you stop the hydra from respawning? without useing Код:
public OnPlayerExitVehicle
new currentveh;
currentveh = GetPlayerVehicleID(playerid);
DestroyVehicle(currentveh);
|