Script Aint Workin :S - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Script Aint Workin :S (
/showthread.php?tid=115295)
Script Aint Workin :S -
ClanDBZVegeta - 23.12.2009
Here is a code i use:
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!
![Sad](images/smilies/sad.gif)
And the armour pickup doesnt even appear too
i need help please... soon
Re: Script Aint Workin :S -
Zamaroht - 23.12.2009
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
Re: Script Aint Workin :S -
ClanDBZVegeta - 23.12.2009
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 -.-''
Re: Script Aint Workin :S -
ClanDBZVegeta - 23.12.2009
Dude it says the same thing.
...