Vehicle System Rp
#2

you need to store that in variables.


pawn Код:
new vehiclelevel[MAX_PLAYERS]; //global variable
pawn Код:
vehiclelevel[playerid] = 0; //onplayerconnect
if you have that command which gives vehicle owner rights to a player .
add these lines to it
pawn Код:
if(vehiclelevel[playerid] == 0) vehiclevel[playerid] = 1, SendClientMessage(playerid, color, "you owned 1st vehicle");
else
if(vehiclelevel[playerid] == 1) vehiclelevel[playerid] = 2, SendClientMessage(playerid, color, "you owned 2nd vehicle.");
else
if(vehiclelevel[playerid] == 2) vehiclelevel[playerid] = 3, SendClientMessage(playerid, color, "you owned 3rd vehicle");
else
if(vehiclelevel[playerid] == 3) return SendClientMessage(playerid, color, "You cant own any more vehicles as you already owned 3 vehicles.");
pawn Код:
vehiclelevel[playerid] = 0; //onplayerdisconnect
Reply


Messages In This Thread
Vehicle System Rp - by MrLeNy - 13.03.2010, 17:58
Re: Vehicle System Rp - by Deat_Itself - 13.03.2010, 18:15
Re: Vehicle System Rp - by Mini` - 13.03.2010, 18:17
Re: Vehicle System Rp - by Deat_Itself - 13.03.2010, 18:19
Re: Vehicle System Rp - by MrLeNy - 13.03.2010, 18:27
Re: Vehicle System Rp - by Deat_Itself - 13.03.2010, 18:32
Re: Vehicle System Rp - by MrLeNy - 13.03.2010, 18:34
Re: Vehicle System Rp - by Mini` - 13.03.2010, 19:22
Re: Vehicle System Rp - by MrLeNy - 13.03.2010, 19:41

Forum Jump:


Users browsing this thread: 2 Guest(s)