help me CODERS :D :D
#1

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
Reply
#2

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
Reply
#3

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
Reply
#4

can iadd more admins commands?
ionly need /goto
Reply
#5

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
Reply
#6

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-
Посмотреть сообщение
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
Read what I said, you have to give the person the weapons upon spawning.
Reply
#7

wait and what ichange?
\
Reply
#8

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;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)