12.12.2010, 13:28
It is a bad example. This is a good example:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/remove", cmdtext, true, 10) == 0)
{
new veh = GetPlayerVehicleID(playerid);
new seat = GetPlayerVehicleSeat(playerid);
new Float:pos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
PutPlayerInVehicle(playerid, veh, seat);
return 1;
}
return 0;
}


