/nuke
#7

Quote:
Originally Posted by [RaZ]Hal_Moore
View Post
PHP Code:
public OnPlayerCommandText(playeridcmdtext[])
{
    new 
cmd[128];
    new 
tmp[128];
    if(
strcmp(cmd"/nuke"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if(!
strlen(tmp))
            {
                
SendClientMessage(playeridCOLOR_WHITE"USAGE: /nuke [playerid/PartOfName]");
                return 
1;
            }
            new 
play;
            new 
Float:slxFloat:slyFloat:slz;
            
play ReturnUser(tmp);
            if (
IsPlayerAdmin(playerid))
            {
                if(
IsPlayerConnected(play))
                {
                    if(
play != INVALID_PLAYER_ID)
                    {
                        
GetPlayerPos(playslxslyslz);
                        
CreateExplosion(slxslyslz-10.0611.0);
                        
CreateExplosion(slxslyslz-10.0711.0);
                        
CreateExplosion(slxslyslz-10.0711.0);
                        
SendClientMessage(play0x800080AA"You have died from a mysterious explosion");
                        
SendClientMessageToAll(0x800080AA"Somebody has died from a mysterious Explosion");
                    }
                }
            }
            else
            {
                
SendClientMessage(playerid0x800080AA"  You are not a bloody Admin !");
            }
        }
        return 
1;
    }
return 
0;

Not Tested yet, i ain't home.. If there's an error tell megh
one error: error 017: undefined symbol "ReturnUser"
pawn Code:
play = ReturnUser(tmp);
Reply


Messages In This Thread
/nuke - by SnG.Scot_MisCuDI - 28.11.2011, 01:07
Re: /nuke - by Aira - 28.11.2011, 01:28
Re: /nuke - by SnG.Scot_MisCuDI - 28.11.2011, 01:39
Re: /nuke - by nmader - 28.11.2011, 02:14
Re: /nuke - by SnG.Scot_MisCuDI - 28.11.2011, 02:42
Re: /nuke - by Aira - 28.11.2011, 07:12
Re: /nuke - by SnG.Scot_MisCuDI - 28.11.2011, 21:17
Re: /nuke - by grand.Theft.Otto - 28.11.2011, 22:43
Re: /nuke - by SnG.Scot_MisCuDI - 28.11.2011, 23:08
Re: /nuke - by grand.Theft.Otto - 28.11.2011, 23:21

Forum Jump:


Users browsing this thread: 1 Guest(s)