Allowing 1 car per person?
#1

Edited to pastebin:

http://pastebin.com/7dg6KNL3
Reply
#2

Edited to pastebinnn

http://pastebin.com/7dg6KNL3
Reply
#3

lol, man edit your post and use or paste it in http://pastebin.com because
its very hard to read

EDIT : Okay, paste it in http://pastebin.com
because its a long code :O
Reply
#4

Muahaha, forgot about pastebin! :P

http://pastebin.com/7dg6KNL3
Reply
#5

Quote:
Originally Posted by lewisno7
Muahaha, forgot about pastebin! :P

http://pastebin.com/7dg6KNL3
LOL :P
anyways, what do you mean by a 1 car per person only?
Reply
#6

Like, only 1 car per person / character.
Reply
#7

Use variables...

like
On top.
pawn Код:
new OnCarPerPlayer[MAX_PLAYERS];
This is for your code.
pawn Код:
If(OneCarPerPlayer[playerid] == 1)
{
SendClientMessage(playerid, color, " One car per player!!!");
}
else
{
//Code to spawn the car
OneCarPerPlayer[playerid] = 1;//(To make it 1, and when he types again the command he will receive the message above)
}

Mayko, not global...use [MAX_PLAYERS] for one player only, not for everyone...
Reply
#8

Where abouts in the code do i put this, end or start?
Reply
#9

BUMP
Reply
#10

bump -.-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)