12.06.2009, 18:58
Quote:
Originally Posted by Ryoere
Quote:
|
pawn Код:
dcmd_getinpveh(playerid,params[])
{
if(!params[0])
{
//No perimeters
}
new giveplayerid = strval(params);
if(!IsPlayerConnected(giveplayerid))
{
//Given id not connected
}
if(!IsPlayerInAnyVehicle(giveplayerid))
{
//Given player not in a vehicle
}
if(IsPlayerInAnyVehicle(playerid))
{
//Using PutPlayerInVehicle while the player is in a vehicle will cause bugs
}
PutPlayerInVehicle(playerid,GetPlayerVehicleID(giveplayerid),1);
return 1;
}