Some DMing help again - 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: Some DMing help again (
/showthread.php?tid=367634)
Some DMing help again -
69 - 10.08.2012
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!!!!!
Re: Some DMing help again -
69 - 10.08.2012
Bump, I really need help.
It's no problem if you can't find everything, one thing at a time is sufficient.
Re: Some DMing help again -
Roko_foko - 10.08.2012
1)
Spectating player,
OnPlayerDeath,
Timer
2)
OnPlayerRequestClass,
SendClientMessage or
TextDraws
Re: Some DMing help again -
69 - 10.08.2012
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.
Re: Some DMing help again -
Abhishek. - 10.08.2012
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
Re: Some DMing help again -
69 - 10.08.2012
Is there anyone else who is able to give further details?
Re: Some DMing help again -
69 - 11.08.2012
*Bump* Anyone?
Quote:
Originally Posted by 69
Is there anyone else who is able to give further details?
|
Re: Some DMing help again -
[MM]RoXoR[FS] - 11.08.2012
- 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