Some DMing help again
#1

Hello again!
I would like to know (please, know) how to do the followings:
- Add a spec cam (using OnPlayerDeath) as soon as a player dies which would expire after 10 seconds.
- Add a text to a skin on the class menu. One for each skin. My skins are on OnGameModeInit
- Add a /mp3 [INSERT URL HERE] command please.
- Sound effects (not audio streams) for my server.

Thank you a lot!!!!!
Reply
#2

Bump, I really need help.
It's no problem if you can't find everything, one thing at a time is sufficient.
Reply
#3

1) Spectating player, OnPlayerDeath, Timer
2) OnPlayerRequestClass,SendClientMessage or TextDraws
Reply
#4

Yeah, could you elaborate on that? I'm really having trouble using PlayerSpectatePlayer and SetTimerEx, SetTimer, KillTimer.
I also want it to choose a random player to spec, and to spawn you back once you're done with the 10000MS of speccing.
Reply
#5

well just do it like that
when a player dies make him to spectate the killers and set a timer for how much time you want to spectate and add the code of stop spectating in the timer os some way like that
2.go to on playerrequest class and make a switch and case for the skins and make a diffent send gamemode text for each skin
3. go to you filterscripts and open i radio and read you will get every thing
Reply
#6

Is there anyone else who is able to give further details?
Reply
#7

*Bump* Anyone?

Quote:
Originally Posted by 69
Посмотреть сообщение
Is there anyone else who is able to give further details?
Reply
#8

  • 1.
    pawn Код:
    public OnPlayerDeath(playerid, killerid, reason)
    {
        TogglePlayerSpectating(playerid,true);
        PlayerSpectatePlayer(playerid,killerid,SPECTATE_MODE_NORMAL);
        SetTimerEx("SpectateOFF",10000,false,"i",playerid);
        return 1;
    }

    forward SpectateOFF(playerid);
    public SpectateOFF(playerid)
    {
        TogglePlayerSpectating(playerid,false);
        return 1;
    }
  • 2.You will need to create TextDraw or
    pawn Код:
    public OnPlayerRequestClass(playerid, classid)
    {
        switch(classid)
        {
            case 0:/*The first class*/ GameTextForPlayer(playerid,"This is first class",500,1);
            case 1:GameTextForPlayer(playerid,"This is second class class",500,1);
        }
        return 1;
    }
  • 3.
    pawn Код:
    #include <ZCMD>
    #include <sscanf2>
    CMD:mp3(playerid,params[])
    {
        new url[110];
        if(sscanf(params,"s[110]",url)) return SendClientMessage(playerid,-1,"USAGE : /mp3 [URL]");
        PlayAudioStreamForPlayer(playerid,url);
        return 1;
    }
  • 4.PlayerPlaySound
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)