Asi tazko si to delal z hlavy ty lol .. mukela .
A čo toto ?? InfrontOf(playerid, X, Y, 4.0);
z exisu ... určite to nema definovane ...
Použi toto:
new NRG[MAX_PLAYERS];//hl funkcia čiže si to daj hore
dcmd_nrg(playerid,params[]){
#pragma unused params
if(IsPlayerInAnyVehicle(playerid)) RemovePlayerFromVehicle(playerid);
new Float: X, Float: Y, Float: Z, Float: Ang;
GetPlayerPos(playerid, X, Y, Z);
GetPlayerFacingAngle(playerid, Ang);
NRG[playerid] = CreateVehicle(522, X, Y , Z, Ang, 147,147, 5000000);
PutPlayerInVehicle(playerid, NRG[playerid], 0);
LinkVehicleToInterior(NRG[playerid], GetPlayerInterior(playerid));
return PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
}
PS: Robyl som to z hlavy tak malo by to fungovať.