rendered paste body#include <a_samp>
#include "xadmin/XtremeAdmin.inc"
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#define COLOR_GREEN 0x33FF33AA
#define COLOR_BLUE 0x33AA33AA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define green 0x33FF33AA
#define red 0xFF0000AA
#define yellow 0xFFFF00AA
#pragma unused strtok
#pragma tabsize 0
forward IsABoat(carid);
forward IsAPlane(carid);
forward GetPlayerID (string[]);
forward PayLog(playerid,giveplayerid,moneys);
forward IsStringAName (string[]);
forward ReplaceVehicle(vehicleid, Float:X, Float:Y, Float:Z,Float:Ang);
public OnPlayerCommandText(playerid,cmdtext[]) //public
{ //open bracket
//-------------------------------------------------------------------
//-------------------Teleportations----------------------------------
//-------------------------------------------------------------------
if(strcmp(cmdtext, "/peter", true) == 0)
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, -3680.542,1604.881,38.070);
SetPlayerFacingAngle(playerid,66.5123);
SendClientMessage(playerid, COLOR_GREEN, "Welcome to a crazy map, by Peter");
return 1;
}
if(strcmp(cmdtext, "/habsbeta", true) == 0)
{
ResetPlayerWeapons(playerid);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 2318.6240,578.1364,7.7813);
SetPlayerFacingAngle(playerid,66.5123);
SendClientMessage(playerid, COLOR_GREEN, "text");
return 1;
}
if(strcmp(cmdtext, "/commands", true) == 0 || strcmp(cmdtext, "/cmds", true) == 0) {
SendClientMessage(playerid, COLOR_RED,":::.------Commands------.::: ) .");
SendClientMessage(playerid, COLOR_YELLOW,"Teleportations: /tele");
SendClientMessage(playerid, COLOR_YELLOW,"Rules: /rules");
SendClientMessage(playerid, COLOR_YELLOW,"Positions: /S - Save Position | /L - Load Position | /D - Delete Position");
return 1;
}
if(strcmp(cmdtext, "/tele", true) == 0 || strcmp(cmdtext, "/cmds", true) == 0) {
SendClientMessage(playerid, COLOR_RED,":::.------Teleportations------.::: ) .");
SendClientMessage(playerid, COLOR_YELLOW,"HOMES: /home1 /home2 /home3");
SendClientMessage(playerid, COLOR_YELLOW,"STUNT RUNS: /peter /hab");
return 1;
}
if(strcmp(cmdtext, "/cmd", true) == 0 || strcmp(cmdtext, "/cmds", true) == 0) {
SendClientMessage(playerid, COLOR_RED,"Try /commands");
return 1;
}
if(strcmp(cmdtext, "/cmds", true) == 0 || strcmp(cmdtext, "/cmds", true) == 0) {
SendClientMessage(playerid, COLOR_RED,"Try /commands");
return 1;
}
if(strcmp(cmdtext, "/rules", true) == 0 || strcmp(cmdtext, "/cmds", true) == 0) {
SendClientMessage(playerid, COLOR_RED,"RULES:");
SendClientMessage(playerid, COLOR_YELLOW,"- You are not allowed to use any kind of 3rd party programs, such as cheats/hacks (except from official programs)");
SendClientMessage(playerid, COLOR_YELLOW,"- You are not allowed to jack vehicles.");
SendClientMessage(playerid, COLOR_YELLOW,"- You are not allowed to spam the chat, doesn't matter what it is.");
SendClientMessage(playerid, COLOR_YELLOW,"- You are not allowed to kill anyone outside the mini games area.");
SendClientMessage(playerid, COLOR_YELLOW,"- Please keep your language clean, and no swearing.");
SendClientMessage(playerid, COLOR_YELLOW,"- Please do not insult admins or other players.");
SendClientMessage(playerid, COLOR_YELLOW,"- Please do not pretend that you're an admin.");
SendClientMessage(playerid, COLOR_YELLOW,"- Do not beg for being admin in the server.");
return 1;
}
return 0;
}//close bracket