05.02.2013, 22:40
(
Последний раз редактировалось Vytixz; 14.03.2016 в 23:09.
)
dfadasdasdasdas
CMD:car(playerid, params[])
{
new Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
CreateVehicle(411, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);
PutPlayerInVehicle(playerid, 411, 0);
}
pawn Код:
|
CMD:car(playerid)
{
new Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
new vehicle = CreateVehicle(411, pos[0], pos[1], pos[2], pos[3], 1, 1, 1200);
PutPlayerInVehicle(playerid, vehicle, 0);
SendClientMessage(playerid, -1, "Your infernus has been spawned.");
}
I think this is a bit wrong, it could put you in any infernus across the server. Also, params[] is not needed.
Therefore, pawn Код:
|
SendClientMessage(playerid, -1, "Your infernus has been spawned.");
return 1;