18.08.2012, 01:31
heey all,
I am using the Spikestrip unclude and edited something.
I made that one player can only spawn one spikestrip.
I tested on server and i see that only one player on the server can use it so its detecting not the playerid but all players.
How can i change it to one player so every player can create one spikestrip?
Thanks Admigo
I am using the Spikestrip unclude and edited something.
I made that one player can only spawn one spikestrip.
I tested on server and i see that only one player on the server can use it so its detecting not the playerid but all players.
Код:
for(new i = 0; i < sizeof(SpikeInfo); i++) { if(SpikeInfo[i][sCreated] == 0) { SpikeInfo[i][sCreated]=1; SpikeInfo[i][sX]=x; SpikeInfo[i][sY]=y; SpikeInfo[i][sZ]=z-0.7; SpikeInfo[i][sObject] = CreateObject(2899, x, y, z-0.9, 0, 0, Angle-90); return 1; } else if(SpikeInfo[i][sCreated] == 1) { SpikeInfo[i][sCreated]=0; SpikeInfo[i][sX]=0.0; SpikeInfo[i][sY]=0.0; SpikeInfo[i][sZ]=0.0; DestroyObject(SpikeInfo[i][sObject]); } }
Thanks Admigo