23.12.2009, 14:02
Here is a code i use:
thats a pickup then:
And:
I basically need an armour pickup but it doesnt show up when i go in the server to test it
And:
Another problem is that when a player spawns he should have an AK47, Silenced Pistol And a Knife i use this code:
But when i spawn i get no weapons at all! ![Sad](images/smilies/sad.gif)
And the armour pickup doesnt even appear too![Sad](images/smilies/sad.gif)
i need help please... soon
Код:
new hidden;
Код:
hidden = CreatePickup(373, 2, -2140.1655,236.8265,35.3594, -1); DestroyPickup(hidden);
Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == hidden) // Check that the pickup ID of the pickup they picked up is mypickup { // It is SendClientMessage(playerid, COLOR_WHITE, "You found the hidden armour!"); // Message the player SetPlayerArmour(playerid, 25); // Give the player the money } return 1; }
And:
Another problem is that when a player spawns he should have an AK47, Silenced Pistol And a Knife i use this code:
Код:
public OnPlayerSpawn(playerid) { SendClientMessage(playerid, COLOR_BLUE,"If your new do /tutorial"); GameTextForPlayer(playerid,"~w~if you get ~r~killed you cant spawn again!",2000,3); if (PlayerDead[playerid]== 1){ TogglePlayerSpectating(playerid, 1); PlayerSpectatePlayer(playerid, specid); } GivePlayerWeapon(playerid, 347); GivePlayerWeapon(playerid, 355); GivePlayerWeapon(playerid, 335); SetPlayerHealth(playerid, 30); return 1; }
![Sad](images/smilies/sad.gif)
And the armour pickup doesnt even appear too
![Sad](images/smilies/sad.gif)
i need help please... soon