My commands cant work?
#1

Why all of my gamemode commands won't work, only FS commands are working?
Reply
#2

Are you sure you have changed your gamemode and you're not running some old one?
Reply
#3

yes everything is OK, no errors on compile but when i join and try to use a command it says Unknown command
Reply
#4

Can you give me a piece of your OnPlayerCommandText?
Reply
#5

public OnPlayerCommandText(playerid, cmdtext[]){

if(strcmp(cmdtext ,"/help",true) == 0)
{
SendClientMessage(playerid, 0x999999AA, "Commands:");
SendClientMessage(playerid, 0x999999AA, "/gpstruck , /gpspilot , /gpsds[dealership] , /gpssw[streetsweep]");
SendClientMessage(playerid, 0x999999AA, "/gpsbankguard , /gpsrobber , /destroycheckpoint , /buycar , /rules");
SendClientMessage(playerid, 0x999999AA, "-------------------------------------------------------------------");
SendClientMessage(playerid, 0x999999AA, "/househelp , /v[vehicle help] , /jobsinfo");
SendClientMessage(playerid, 0x999999AA, "-------------------------------------------------------------------");
SendClientMessage(playerid, 0x999999AA, "/jointruckers , /joinpilots , /joinss[street sweeper] , /joinguard");
return 1;
}

if(strcmp(cmdtext ,"/loadtruck",true) == 0)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid, COLOR_RED, "You are not driving a truck from the depot.");
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2428.7221679688, -2102.3930664063, 13.552991867065))
{
ShowPlayerDialog(playerid,13,DIALOG_STYLE_LIST,"Wh at do you want to load?","Clothes - 7.000$ \nWeapons - 9mm + 5.000$ \nEquipment - Armor + 5.500$ \nGas - 15.000$ \nPizza - 7.000$","Load","Cancel");
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not at the loadplace.");
}
return 1;
}
return 0;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)