03.05.2012, 09:27
pawn Код:
if(strcmp(cmd, "/mycar", true) == 0)
{
new Float:X, Float:Y, Float:Z, Float:Angle, PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(strcmp(PlayerName, "Cir.Cuz") == 0)
{
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Angle);
SetVehiclePos(SampleCar1, X, Y, Z);
SetVehicleZAngle(SampleCar1, Angle);
PutPlayerInVehicle(playerid, SampleCar1, 0);
}
return 1;
}
return 0;
}