Script Aint Workin :S
#1

Here is a code i use:
Код:
new hidden;
thats a pickup then:
Код:
	hidden = CreatePickup(373, 2, -2140.1655,236.8265,35.3594, -1);
	DestroyPickup(hidden);
And:
Код:
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;
}
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:
Код:
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;
}
But when i spawn i get no weapons at all!
And the armour pickup doesnt even appear too

i need help please... soon
Reply
#2

Why are you using 373 for the pickup id, and 347, 355 and 335 for weapons? Those things don't even exist.
Weapon list https://sampwiki.blast.hk/wiki/Weapons
Some pickup models (search for armor or armour) https://sampwiki.blast.hk/wiki/Model_ID
Reply
#3

Quote:
Originally Posted by Zamaroht
Why are you using 373 for the pickup id, and 347, 355 and 335 for weapons? Those things don't even exist.
im so stupid -.-''
Reply
#4

Dude it says the same thing.
...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)