Jump to content

Question

Posted

Vreau sa incep un GM de stunt dar am cateva probleme.

Sunt incepator deci asi vrea sa nu va luati de mine.

Nu stiu cum sa fac sa salvez deoarece atunci cand salvez in Pawn tot ce am scris se salveaza pe gamemode dar atunci cand intru pe samp nu sa modificat nimic.

Spre exemplu am facut comanda asta si pe joc nu functioneaza ( Imi zice ca comanda nu exista):

CMD:infernus(playerid)
{
    if(gUser[playerid][U_MODE] != MODE_FREEROAM) return GameTextForPlayer(playerid, "~r~You must be in freeroam", 5000, 3);

    if(! IsPlayerSpawned(playerid)) return GameTextForPlayer(playerid, "~r~You must be spawned", 5000, 3);

    new Float:pos[4];
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
    GetPlayerFacingAngle(playerid, pos[3]);

    if(IsValidVehicle(gUser[playerid][U_VEHICLE])) DestroyVehicle(gUser[playerid][U_VEHICLE]);
    gUser[playerid][U_VEHICLE] = CreateVehicle(411, pos[0], pos[1], pos[2] + 2.0, pos[3], random(255), random(255), -1);
    LinkVehicleToInterior(gUser[playerid][U_VEHICLE], GetPlayerInterior(playerid));
    SetVehicleVirtualWorld(gUser[playerid][U_VEHICLE], GetPlayerVirtualWorld(playerid));
    PutPlayerInVehicle(playerid, gUser[playerid][U_VEHICLE], 0);

    GameTextForPlayer(playerid, "~b~~h~~h~~h~Infernus spawned", 5000, 3);
    return 1;
}

1 answer to this question

Recommended Posts

  • 0
Posted

Nu se salveaza deoarece nu dai "Compile" la gamemode ci doar il salvezi.

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.