17.05.2013, 20:09
Hi Everyone today am trying to edit this dealership system etc.
so the issue is whenever i type /createdealership it works all fine but only the text shows up saying dealership then the id of it i want it so its a pickup as well showing not just the text
The Command below need more just ask.
EDIT: 1st one helps gets REP
so the issue is whenever i type /createdealership it works all fine but only the text shows up saying dealership then the id of it i want it so its a pickup as well showing not just the text
The Command below need more just ask.
EDIT: 1st one helps gets REP

Код:
CMD:createdealership(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] < 4 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, NOTADMIN);
if(!IsPlayerSpawned(playerid)) return SendClientMessage(playerid, COLOR_RED, "You can't use this command now!");
for(new i=1; i < MAX_DEALERSHIPS; i++)
{
if(!DealershipCreated[i])
{
new msg[128];
DealershipCreated[i] = 1;
GetPlayerPos(playerid, DealershipPos[i][0], DealershipPos[i][1], DealershipPos[i][2]);
UpdateDealership(i, 0);
SaveDealership(i);
format(msg, sizeof(msg), "dealership id %d", i);
SendClientMessage(playerid, COLOR_WHITE, msg);
return 1;
}
}
SendClientMessage(playerid, COLOR_RED, "Can't add any more dealerships!");
return 1;
}


