25.02.2010, 18:44
What you want to do exactly?
If i understand you good, then..
It's for example. I don't write you fully script.
If i understand you good, then..
Код:
new Gun[MAX_PLAYERS];
Код:
COMMAND:dropweapon(playerid,params[]) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); for(new i=0;i<MAX_PLAYERS;i++){ Gun[i] = CreatePickup(349,4,x,y,z,-1); } return 1; }
Код:
OnPlayerPickupPickup(playerid,pickupid) { if(pickupid == Gun[playerid]) { // GivePlayerGun return 1; } return 1; }