Posts: 32
Threads: 4
Joined: Apr 2009
Reputation:
0
How i can spawn with MMB a object? (ID 1220) MAX 3x
one more piece
And you should be able to spawn again until after the death 3 objects
Posts: 92
Threads: 21
Joined: Oct 2011
Reputation:
0
Firstly read my signature the top of it and secondly explain a little more
Posts: 225
Threads: 0
Joined: Jun 2008
Reputation:
0
You mean with the objects attached to the player when he spawns? Please explain more about what you want.
Posts: 32
Threads: 4
Joined: Apr 2009
Reputation:
0
If a user press MMB, then spawn a object befor him
but he can spawn 3 objects and not more
but after death or gespawn he can again spawn 3 objects
Posts: 484
Threads: 49
Joined: Feb 2011
on top
new ObjectCount[MAX_PLAYERS];
OnPlayerSpawn
ObjectCount[playerid] = 0;
OnPlayerKeyStateChange
pawn Код:
if(PRESSED(KEY_LOOK_BEHIND))
{
if(ObjectCount[playerid] < 4)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z)
CreateObject(...X,Y,Z...)
ObjectCount[playerid] ++
}
}
Posts: 32
Threads: 4
Joined: Apr 2009
Reputation:
0
Help me pls
how i can delete all objects?