Need Help in building /forcespawn

Started by [VM_U]Spectra.PhantoM^, Dec 26, 2015, 01:25 PM

Previous topic - Next topic

[VM_U]Spectra.PhantoM^

else if (command == "forcespawn")
{
if (params.len() < 1) EMessagePlayer(player,  "Invalid parameters, /disarm playername reason");

else if (player.Level() < 7) EMessagePlayer(player, "Command level too high");

else if (!FindPlayer(params[0])) EMessagePlayer(player, "Unknown player %s", params[0]);

else

{

local plr = FindPlayer(params[0]);

EMessageAll("Administrator %s has forced %s to spawn.", player.Name, plr.Name, arguments.slice(params[0].len()));

plr.Spawn = true;
}
return 1;

}

I've done till this part but it gives me error Member variable not found can anyone tell me anything to put in place of plr.Spawn;?
Wanna Talk To Me? Come At Irc #Jugo@LUNet

KAKAN

I see that your code is broken, anyways, if you say that the thing plr.SPawn is giving problem, then replace that with this:-
plr.Spawn();
oh no

[VM_U]Spectra.PhantoM^

Quote from: KAKAN on Dec 26, 2015, 01:33 PMI see that your code is broken, anyways, if you say that the thing plr.SPawn is giving problem, then replace that with this:-
plr.Spawn();
thankx it worked
Wanna Talk To Me? Come At Irc #Jugo@LUNet