Respawn Cmd - 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: Respawn Cmd (
/showthread.php?tid=543952)
Respawn Cmd -
StR_MaRy - 30.10.2014
Hello, I would like a command that can give you respawn all the members of that faction
can be done?
Re: Respawn Cmd -
DavidBilla - 30.10.2014
Use ForceClassSelection(playerid) in a player loop below that command and set a variable to 1
Under OnPlayerRequestClass, if the variable is 1 automatically spawn them and again set the variable to 0.
Re: Respawn Cmd -
Glossy42O - 30.10.2014
First of all.
This is scripting help section not free commands or whatever.
Learn to script, Make that command if it have bugs or errors then come here for help.
Re: Respawn Cmd -
Banana_Ghost - 30.10.2014
You will need to edit this to suit the needs for your faction variables, command processor, etc
try this:
pawn Код:
if (strcmp("/spawnfaction", cmdtext, true, 13) == 0)
{
if(IsPlayerAdmin(playerid))
{
for(new i; i<MAX_PLAYERS; i++)
{
if(factionname[i] == NumberVariable)
{
SpawnPlayer(i);
SendClientMessage(i,-1,"An Admin Has Respawned Your Faction.");
}
}
}
return 1;
}
Re: Respawn Cmd -
StR_MaRy - 30.10.2014
thx banana , and stuun this is a scripting help section "help" not answer with yes or no bro ... +rep banana and davidbilla