Jump to content
  • 0

Problema masini personale


SkyLzo98

Question

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

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

[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 :)

Link to comment
Share on other sites

[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 :)

Link to comment
Share on other sites

[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]

Link to comment
Share on other sites

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.