help me CODERS :D :D - 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)
+--- Thread: help me CODERS :D :D (
/showthread.php?tid=323002)
help me CODERS :D :D -
ayman1997 - 04.03.2012
guys irealy need to add weapons to my server By
1)Portal
2)Respawn
can you help me?
in portal ineed to add like 5 portals
please help me out
Re: help me CODERS :D :D -
Campbell- - 04.03.2012
Well, you need to define in your code that when someone gets teleported by a portal or gets spawned that he receives certain weapons. Following links might assist you:
https://sampwiki.blast.hk/wiki/GivePlayerWeapon
https://sampwiki.blast.hk/wiki/OnPlayerSpawn
Re: help me CODERS :D :D -
R0FLC0PTER - 04.03.2012
I'm sorry i don't know what you mean by portal.
But if you want to give player weapons, you do something like this in OnPlayerSpawn
pawn Код:
GivePlayerWeapon(playerid, [WEAPON ID], [AMMO AMMOUNT] );
You can find a list of weapon ids on the wiki.
https://sampwiki.blast.hk/wiki/Weapons
Re: help me CODERS :D :D -
ayman1997 - 04.03.2012
can iadd more admins commands?
ionly need /goto
Re: help me CODERS :D :D -
ayman1997 - 04.03.2012
nope idont want give weapons
iwant him each time he respawn with weapons
like:- Sawnoff/grenade/m4/mp5/RPG=5shots/Sniper/Desert Eagle All Max
Re: help me CODERS :D :D -
Campbell- - 04.03.2012
Quote:
Originally Posted by ayman1997
can iadd more admins commands?
ionly need /goto
|
You're always able to add commands to your script. If you don't know how then start to learn basics by reading documentations because we won't be able to assist you in any way if you're not giving any information about your gamemode. Is it ZCMD, DCMD, ... what you're using? How are administrators in your script definied? State some information about your script and don't start editing a script if you never scripted before. It's better if you start learning basics.
Quote:
Originally Posted by ayman1997
nope idont want give weapons
iwant him each time he respawn with weapons
like:- Sawnoff/grenade/m4/mp5/RPG=5shots/Sniper/Desert Eagle All Max
|
Quote:
Originally Posted by Campbell-
|
Read what I said, you have to give the person the weapons upon spawning.
Re: help me CODERS :D :D -
ayman1997 - 04.03.2012
wait and what ichange?
\
Re: help me CODERS :D :D -
Twisted_Insane - 04.03.2012
A "goto"-command?
pawn Код:
CMD:goto(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
new ID;
if(sscanf(params, "u", ID)) SendClientMessage(playerid, COLOR_GREY, "USAGE: /goto [playerid]");
else if(IsPlayerConnected(ID) == 0) SendClientMessage(playerid, COLOR_GREY, "Player is not connected!");
else
{
new Float:x, Float:y, Float:z;
GetPlayerPos(ID, x, y, z);
SetPlayerPos(playerid, x+1, y+1, z);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command!");
}
return 1;
}