public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/help", true)) { if(gTeam[playerid] == TEAM_TAXIDRIVER) { SendClientMessage(playerid,0x33AA33AA,"Your Job Is A Taxi Driver!"); SendClientMessage(playerid,0x33AA33AA,"You Can Do Your Job Just When You Are In Taxi Or Bus!"); SendClientMessage(playerid,0x33AA33AA,"When You Enter Taxi Or Bus Type /onduty So Players Will Know That You Are On Duty As Taxi/Bus Driver"); SendClientMessage(playerid,0x33AA33AA,"They Will Tell You Where They Want To Go (Location)"); SendClientMessage(playerid,0x33AA33AA,"You Can See Players Who Need A Driver On Map! They Will Be Marked!"); SendClientMessage(playerid,0x33AA33AA,"For More Infromation About This Game/Server/Jobs You Can Contact Admin with Command /helpme (msg)"); } return true; } if(gTeam[playerid] == TEAM_FOODDELIVERY) { SendClientMessage(playerid,0xFFFF00AA,"Your Job Is A Food Delivery!"); SendClientMessage(playerid,0xFFFF00AA,"You Can Do Your Job On Foot,Trucks,Motorbikes... Doesnt Matter in What Vehicle You Are!"); SendClientMessage(playerid,0xFFFF00AA,"You Must Type /Foodsell To Sell Food To Player Who Call You"); SendClientMessage(playerid,0xFFFF00AA,"Players Who Need Food Will Be Marked On Map!"); SendClientMessage(playerid,0xFFFF00AA,"For More Infromation About This Game/Server/Jobs You Can Contact Admin with Command /helpme (msg)"); return true; } return false; }
if(!strcmp(cmdtext, "/help", true))
{ //open 1
if(gTeam[playerid] == TEAM_TAXIDRIVER)
{ //open 2
SendClientMessage(playerid,0x33AA33AA,"Your Job Is A Taxi Driver!");
SendClientMessage(playerid,0x33AA33AA,"You Can Do Your Job Just When You Are In Taxi Or Bus!");
SendClientMessage(playerid,0x33AA33AA,"When You Enter Taxi Or Bus Type /onduty So Players Will Know That You Are On Duty As Taxi/Bus Driver");
SendClientMessage(playerid,0x33AA33AA,"They Will Tell You Where They Want To Go (Location)");
SendClientMessage(playerid,0x33AA33AA,"You Can See Players Who Need A Driver On Map! They Will Be Marked!");
SendClientMessage(playerid,0x33AA33AA,"For More Infromation About This Game/Server/Jobs You Can Contact Admin with Command /helpme (msg)");
} //close 2
return true; //exit the command << this is where it exits the "/help" scope
} //close 1
Originally Posted by Geekzor
lol ty for help but the problem is now : when i am in taxi driver team iit says the command OK! but it say + SERVER: Unknown Command
so it show both the messages ''bla bla bla'' under this it say SERVER:Unknown Command and when i am in food delivery team it show command normal but it show the command it doesnt matter what i type if i type /lol it will show messages if i type /iamnoobatscripting it wil lshow the mesages etc... any help ? i will respond leter cuz now i go outside a little at this time i hope u will help me again ty |