Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Mohamed Boubekri

#301
Quote from: Xmair on Oct 19, 2017, 10:29 AMChange
player.Vehicle.Angle()to player.Vehicle.Angle
Thankss So Much Bro But Problem Solved By DoomKill3R
#302
I am Go Wiki Vcmp And Download That Commands And Instaler But.
    if ( cmd == "Anglecar" ) {
        else if ( !player.Vehicle ) MessagePlayer("You are not in a vehicle.", player );
        else {
           MessagePlayer( " Your vehicle angle is: " + player.Vehicle.Angle(), player );
        }
       }
}
That Commands Not Work Any Worked That Code Need It.
#303
Quote from: Mahmoud Tornado on Oct 18, 2017, 09:02 PMsetlevel command not working in this commands Becuz you must be have register server than level stats than change commands ;D ;D
Registration Do You Know Any System registration niice save stats?
#304
I am Have Announcement Commands /ann Oke.
Now i am need to go ingame and do/setlevel Name.player Eventstaff
or /setlevel Name admin
Head admin : Can Do /kick And /ann And /setweather And /settime After me do
/setlevel Name eventstaff Send Him Message For Player: admin has give you eventstaff team.
Really Dude Me commands
Here You Go
1 : Announcement
    else if (cmd == "ann")
    {
if ( player.Name == "[MCO]We3da" || player.Name == "SdS.3laWi" || player.Name == "MahmoudTornado" )   // You Must Change Them To You Admins Names
    {
        if (!text) return ClientMessage("[#FF0000][Syntax]/ann <ID> <All/Nick/ID> <Text>", player, 0, 0, 0);
        local v = split(text, " ");
        if (v.len() < 3) return ClientMessage("[#FF0000][Syntax]/ann <ID> <All/Nick/ID> <Text>", player, 0, 0, 0);
        if (v[1].tolower() == "all") AnnounceAll(text.slice(v[0].len() + v[1].len() + 2), v[0].tointeger());
        else Announce(text.slice(v[0].len() + v[1].len() + 2), FindPlayer(v[1]), v[0].tointeger());
    }
        else MessagePlayer( "[#FF0000] You're not allowed to use this command. " , player )
}
2 : Kick
    else if ( cmd == "kick" )
    {
if ( player.Name == "[MCO]We3da" || player.Name == "SdS.3laWi" || player.Name == "New Name #2" )   // You Must Change Them To You Admins Names
        {
            if ( text )
            {
                local plr = FindPlayer( text );
                if ( plr )
                {
                    KickPlayer( plr );
                }
                else MessagePlayer( "[#ff0000]Cannot find player "+text+"." , player );
            }
            else MessagePlayer( "[#ff0000]Usage: /"+cmd+" <player>" , player );
        }
        else MessagePlayer( "[#ff0000]You are not allowed to use this command." , player )
    }
3 : Set Time
else if ( cmd == "settime" )
    {
if ( player.Name == "[MCO]We3da" || player.Name == "SdS.3laWi" || player.Name == "New Name #2" )   // You Must Change Them To You Admins Names
{
     if ( !text ) MessagePlayer( "[#ff0000]Correct syntax : /settime <hr> <min>", player );
      else if ( split(text, " ").len() < 2) return MessagePlayer("[#ff0000]Correct syntax : /settime <hr> <min>", player )
      else
   {
   local a = split(text, " ");
      if ( !IsNum( a[0] )) MessagePlayer( "[#ffbb00]Format: /settime <hr> <min>", player );
      else if ( !IsNum( a[1] )) MessagePlayer( "[#ffbb00]Format: /settime <hr> <min>", player );
      else SetTime( a[0].tointeger(), a[1].tointeger() ) ; 
      }
   }
        else MessagePlayer( "[#FF0000] You're not allowed to use this command. " , player )
}
4 SetWeather
else if ( cmd == "setweather" )
{
if ( player.Name == "[MCO]We3da" || player.Name == "SdS.3laWi" || player.Name == "New Name #2" )   // You Must Change Them To You Admins Names
{
if ( !text ) return MessagePlayer( "[#ff0000]Usage: setweather [Weather/ID]", player );
if ( !IsNum(text) ) return MessagePlayer( "[#ff0000]Use integers/numbers", player );
SetWeather( text.tointeger() );
Message( "[#4acc0a] Admin "+ player.Name +" Set The Weather To "+GetWeatherName());
return;
}
        else MessagePlayer( "[#FF0000] You're not allowed to use this command. " , player )
}

Note : Sorry For My Bad eNGLISH i need Helppp Just Got it to me for ann or settime as example and me i iwill made other.
#305
]
Quote from: Thijn on Oct 18, 2017, 04:27 PMPseudo code, you'd have to change that to working code yourself.

onPlayerCommand(player, command, text) {
if (command == "angle") {
if (player.Vehicle) {
MessagePlayer(player, "Angle: " + player.Vehicle.Angle);
} else {
MessagePlayer(player, "Get in a vehicle. Noob.");
}
}
@Thijn Thanks For You Help Problem Solved By @KuRiMi
#306
Hello Guys Can Any One Help Me i am need Code To Get Angle Car And Thanks
#307
Quote from: KuRiMi on Oct 18, 2017, 11:34 AM
Quote from: [MCO]We3da on Oct 17, 2017, 06:42 PMNot Working For me MahmoudTornado
all commands its work database create automatique all niiicebut
But i am do /saveloc parkour and do /gotoloc parkour........ Unknow loc lol ;v

Probably either your gotoloc function doesn't read the positions, from the database, correctly or your saveloc doesn't store the positions properly.
Thanks Bro KuRiMi Problem Solved.
#308
Not Working For me MahmoudTornado
all commands its work database create automatique all niiicebut
But i am do /saveloc parkour and do /gotoloc parkour........ Unknow loc lol ;v