Jump to content
  • 0

Question

Posted

Am nevoie de ajutor, normal ar trebui sa ma lase sa intru in masina, dar ma scoate afara spunandumi ca nu sunt eu ownerul masinii

[pawn]#include <a_samp>

new SkyLzo98;

public OnGameModeInit()

SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0);

return 1;

}

public OnPlayerStateChange(playerid, newstate, oldstate)

{

if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98)

{

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));

if(strcmp(name, "SkyLzo98", false))

SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98");

{

RemovePlayerFromVehicle(playerid);

SendClientMessage(playerid, 0x281aeb, "Aceasta masina nu iti apartine!Apartine lui SkyLzo98");

}

}

return 1;

}

[/pawn]

Daca vreti sa vorbim add skype: skilzo98

7 answers to this question

Recommended Posts

Posted

[pawn]

#include <a_samp>

new SkyLzo98;

public OnGameModeInit()

SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0);

return 1;

}

public OnPlayerStateChange(playerid, newstate, oldstate)

{

if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98)

{

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));

if(strcmp(name, "SkyLzo98", false))

{

SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98");

}

else

{

RemovePlayerFromVehicle(playerid);

SendClientMessage(playerid, 0x281aeb, "Aceasta masina nu iti apartine!Apartine lui SkyLzo98");

}

}

return 1;

}

[/pawn]

Rate me :)

Posted

Da, am facut cum zici tu dar zice :

(5) : error 010: invalid function or declaration

Doar cum am facut eu se compila fara eroare.

Daca vreti sa vorbim add skype: skilzo98

Posted

[pawn]

#include <a_samp>

new SkyLzo98;

public OnGameModeInit()

SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0);

return 1;

}

public OnPlayerStateChange(playerid, newstate, oldstate)

{

if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98)

{

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));

if(!strcmp(name, "SkyLzo98", false)) return RemovePlayerFromVehicle(playerid);

SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98");

return 1;

}

return 1;

}

[/pawn]

Rate me :)

Posted

[pawn]

#include <a_samp>

new SkyLzo98;

public OnGameModeInit()

{

SkyLzo98 = AddStaticVehicle(411, 1799.6177, -1854.6157, 14.8478, 0.0000, 1, 0);

return 1;

}

public OnPlayerStateChange(playerid, newstate, oldstate)

{

if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == SkyLzo98)

{

new name[MAX_PLAYER_NAME];

GetPlayerName(playerid, name, sizeof(name));

if(!strcmp(name, "SkyLzo98", false)) return RemovePlayerFromVehicle(playerid);

SendClientMessage(playerid, 0x281aeb, "Bine ai venit in masina ta, SkyLzo98");

return 1;

}

return 1;

}[/pawn]

Guest
This topic is now closed to further replies.
×
×
  • 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.