else if(strcmp(x_nr,\"vesz\",true) == 0)
{
if(IsAnOwnableCar(idcar))
{
if(PlayerInfo[playerid][pLevel] < 1)
{
SendClientMessage(playerid, COLOR_GREY, \"Syber RPG: Min Lvl1\");
return 1;
}
if(PlayerInfo[playerid][pPcarkey] == 999) { }
else { SendClientMessage(playerid, COLOR_LIGHTRED, \" Syber RPG: Már van kocsid!\"); return 1; }
if(CarInfo[idcar][cOwned]==1)
{
SendClientMessage(playerid, COLOR_GREY, \"Syber RPG: Ez másé!\");
return 1;
}
if(GetPlayerMoney(playerid) >= CarInfo[idcar][cValue])
{
if(PlayerInfo[playerid][pPcarkey] == 999) { PlayerInfo[playerid][pPcarkey] = idcar; }
else { return 1; }
GetPlayerName(playerid, sendername, sizeof(sendername));
strmid(CarInfo[idcar][cOwner], sendername, 0, strlen(sendername), 999);
SafeGivePlayerMoney(playerid,-CarInfo[idcar][cValue]);
PlayerPlayMusic(playerid);
GameTextForPlayer(playerid, \"~n~Ne feledd el leparkolni /v park !\", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTGREEN, \"Syber RPG: Vettél egy új kocsit!\");
SendClientMessage(playerid, COLOR_LIGHTGREEN, \"Tipp: | /v !\");
gEngine[playerid] = 0;
CarInfo[idcar][cOwned] = 1;
engineOn[GetPlayerVehicleID(playerid)] = false;
DateProp(playerid);
OnPropUpdate();
OnPlayerUpdate(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, \" Syber RPG: ! \");
return 1;
}
Dupla hozzászólás automatikusan összefûzve. ( 2012. november 15. - 15:54:54 )
Senki se tudja? :/