Blockland Forums > Modification Help
Need help scripting.
zefoo:
--- Quote from: Wordy on June 27, 2012, 04:19:19 PM ---you clearly did not read the last few posts, read them again and fix the mistakes
--- End quote ---
Sorry yea ok i did now let me test it.
Wordy:
saw that ninja -.-
elm:
It should look something like this:
function serverCMDKill(%client,%player)
{
if(!%client.isAdmin)
return 0;
%player = findClientByName(%player).player;
if(!isObject(%player))
{
//There is no player object with that name available
return 0;
}
%player.kill();
return true;
}
zefoo:
IT WORKS! :D
Thanks for the help. Now let me see my other script...
Ok so how do you see if a player is on the server?
Something like "If(findClientByName(%targetname).exists)"?
elm:
%client = findClientByName(%name);
if(isObject(%client))