CMD:vehslot
#4

Nope.

Here you go:-
PHP код:
enum PlayerInfo
{
    
vehslot
};
new 
PlayerData[MAX_PLAYERS][PlayerInfo]; 
PHP код:
CMD:vehslot(playeridparmas[])
{
     if(
PlayerData[playerid][vehslot] == 8) return SendClientMessage(playerid, -1"You already have maximum number of vehicle slots!");
     
PlayerData[playerid][vehslot]++;
return 
1;

PHP код:
CMD:vehbuy(playeridparmas[])
{
     new 
vID;
     if(
PlayerData[playerid][vehslot] == ) return SendClientMessage(playerid, -1"You have no vehicle slots!");
     if(
PlayerData[playerid][vehslot] == ) return SendClientMessage(playerid, -1"You can only own 8 vehicles only!");
     if(
sscanf(parmas"u"vID)) return SendClientMessage(playerid, -1"/vehslot [vehicleid]");
     if(
vID 400 || vID 611) return SendClientMessage(playerid, -1"Invalid vehicle id!");
     if(
vID == 520) return SendClientMessage(playerid, -1"You can not buy this vehicle!");
     
     
PlayerData[playerid][vehslot]++;
     
SendClientMessage(playerid, -1"You successfully bought your own vehicle!");
     
     
     
     
return 
1;

It's Just an example how you can do it.
Reply


Messages In This Thread
CMD:vehslot - by MrCallum - 25.08.2016, 15:25
Re: CMD:vehslot - by DarkSkull - 25.08.2016, 15:28
Re: CMD:vehslot - by MrCallum - 25.08.2016, 15:30
Re: CMD:vehslot - by DeeadPool - 25.08.2016, 15:49

Forum Jump:


Users browsing this thread: 1 Guest(s)