rendered paste bodypublic OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_GREEN,"/tele - Views Avalible Teleports");
SendClientMessage(playerid, COLOR_GREEN,"/kill - Kills Yourself");
SendClientMessage(playerid, COLOR_GREEN,"/help - Views Help");
SendClientMessage(playerid, COLOR_GREEN,"/credits - Views Credits of the server/script");
SendClientMessage(playerid, COLOR_GREEN,"/gagbutton1 - Displays funny text 1");
SendClientMessage(playerid, COLOR_GREEN,"/gagbutton2 - Displays funny text 2");
SendClientMessage(playerid, COLOR_GREEN,"/gagbutton3 - Displays funny text 3");
SendClientMessage(playerid, COLOR_GREEN,"/healme - Gives you Full Health for $500 ");
SendClientMessage(playerid, COLOR_GREEN,"/jobs - Looks for jobs in the ConTron's Pages");
SendClientMessage(playerid, COLOR_YELLOW,"/commands2 - Shows more commands");
return 1;
}
if(strcmp(cmdtext,"/lilshop2",true)==0)
{
if(IsPlayerAdmin(playerid)) {
SendClientMessage(playerid, COLOR_GREEN, "Welcome Admin!");
SetPlayerPos(playerid, -1943.0226,285.7458,47.7031);
}
else
SendClientMessage(playerid,COLOR_RED,"You must be an administrator!");
return 1;
}
if (strcmp("/classsel", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_RED,"You have returned to class selection without killing yourself");
ForceClassSelection(playerid);
return 1;
}
if (strcmp("/spme", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, COLOR_GREEN,"You re-spawned.");
SpawnPlayer(playerid);
return 1;
}
if (strcmp("/pullover", cmdtext, true, 10) == 0)
{
SendClientMessageToAll(COLOR_RED,"Cop: CAR INFRONT OF ME - PULL OVER NOW");
return 1;
}
return 0;
}