Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case D_R_Rules:
- {
- if(response)
- {
- TogglePlayerSpectating(playerid, 0);
- if(strcmp(U_Stats[playerid][pGender], "Female")){
- U_Stats[playerid][pSkin] = 17;}
- else {
- U_Stats[playerid][pSkin] = 93;}
- SetSpawnInfo(playerid, 0, U_Stats[playerid][pSkin], 1743.1300, -1861.9683, 13.5769, 359.2573, 0, 0, 0, 0, 0, 0); // Erorr was here
- SpawnPlayer(playerid);
- GivePlayerMoney(playerid, 25000);
- SetPlayerScore(playerid, 1);
- new INI:File = INI_Open(UserPath(playerid));
- INI_SetTag(File, "data");
- INI_WriteInt(File, "Skin", 17);
- INI_WriteInt(File, "Interior", 0);
- INI_WriteInt(File, "VW", 0);
- INI_WriteFloat(File, "PositionX", 1743.1300);
- INI_WriteFloat(File, "PositionY", -1861.9683);
- INI_WriteFloat(File, "PositionZ", 13.5769);
- INI_WriteInt(File, "Money", 25000);
- INI_WriteInt(File, "Level", 1);
- INI_WriteInt(File, "Job1", 0);
- INI_WriteInt(File, "Job2", 0);
- INI_WriteInt(File, "Flags", 0);
- INI_WriteInt(File, "Banned", 0);
- INI_WriteString(File, "BanBy", "0");
- INI_WriteString(File, "BanReason", "0");
- new plrIP[16];
- GetPlayerIp(playerid, plrIP, sizeof(plrIP));
- INI_WriteString(File, "RegIP", plrIP);
- INI_WriteString(File, "LastIP", plrIP);
- INI_WriteInt(File, "Faction", 0);
- INI_WriteString(File, "Rank", "None");
- INI_Close(File);
- SendClientMessage(playerid, -1, "{FFFFFF}[{82CAFF}NCRP{FFFFFF}] Welcome to New City Roleplay! Are you in need of help? Feel free to use /m(oderator)m(essage)!");
- SendClientMessage(playerid, -1, "{FFFFFF}[{82CAFF}NCRP{FFFFFF}] You may use /o(oc)c(hat) to chat globaly.");
- new message[255];
- format(message, 255, "{FFFFFF}[{82CAFF}NCRP{FFFFFF}] Welcome our newest user %s to NCRP!", GetName(playerid));
- SendClientMessageToAll(-1, message);
- return 1;
- }
- }
- CMD:askin(playerid,params[])
- {
- if(U_Stats[playerid][pLevel] > 12)
- {
- new idskin, cible, string2[200];
- if(sscanf(params,"ii", cible, idskin)) return SendClientMessage(playerid, -1, "[{82CAFF}Use{FFFFFF}] /askin [player_id] [skin_id]");
- if(idskin<0||idskin>311) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] Invalid Skin ID [0-311]");
- SetPlayerSkin(cible, idskin);
- format(string2, sizeof(string2), "[{ff0000}Admin{FFFFFF}] You have change the {ff0000}%s{FFFFFF}'s (ID: {82CAFF}%i{FFFFFF}) skin. Skin ID : {ff0000}%i", GetName(cible), cible, idskin);
- SendClientMessage(playerid, -1, string2);
- return 1;
- }
- else return 1;
- }
- CMD:avehicle(playerid, params[])
- {
- if(U_Stats[playerid][pLevel] < 12) return 1;
- new Float:x, Float:y, Float:z, Float:Angle, vehID, string[150];
- if(GetPlayerInterior(playerid) > 0) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You're in an interior");
- if(GetPlayerVirtualWorld(playerid)> 0) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] Wrong virtual world");
- if(sscanf(params,"i", vehID)) return SendClientMessage(playerid, -1, "[{82CAFF}Use{FFFFFF}] /v [vehicle_id] [400-611]");
- if(611<vehID || vehID<400) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] Invalid Vehicle ID [400-611]");
- if(IsPlayerInAnyVehicle(playerid)) { RemovePlayerFromVehicle(playerid); }
- GetPlayerPos(playerid, x, y, z);
- GetPlayerFacingAngle(playerid, Angle);
- vehID = CreateVehicle(vehID, x, y, z, Angle, -1, -1, -1);
- PutPlayerInVehicle(playerid, vehID, 0);
- format(string, sizeof(string), "[{ff0000}Admin{FFFFFF}] You have spawned an vehicle (Model : %i | ID : %i)", GetVehicleModel(vehID), vehID);
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- CMD:aengine(playerid, params[])
- {
- if(U_Stats[playerid][pLevel] < 12) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You're not high admin enough.");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You're not in a vehicle.");
- if(GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid, -1, "{FFFFFF}[{82CAFF}Error{FFFFFF}] You're not the driver.");
- new engine, lights, alarm, doors, bonnet, boot, objective;
- GetVehicleParamsEx(GetPlayerVehicleID(playerid), engine, lights, alarm, doors, bonnet, boot, objective);
- SetVehicleParamsEx(GetPlayerVehicleID(playerid), VEHICLE_PARAMS_ON, lights, alarm, doors, bonnet, boot, objective);
- return 1;
- }
- //------------------------------------------------------------------------------------------------
- // ==============================================================================================
- // Los Angeles Police Department | Commands
- // ==============================================================================================
- //------------------------------------------------------------------------------------------------
- new bool:IsOnDuty[MAX_PLAYERS] = false;
- CMD:duty(playerid,params[])
- {
- if(!LawE(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You are not allowed to use this command");
- //if(!IsPlayerInRangeOfPoint(playerid, range, x, y, z)) return SendClientMessage(playerid, -1, "[{82CAFF}Infomation{FFFFFF}] You must be at the comico'");;
- if(IsOnDuty[playerid] == false)
- {
- new str[128];
- IsOnDuty[playerid] = true;
- SendClientMessage(playerid, -1, "[{82CAFF}Infomation{FFFFFF}] You are now on duty");
- format(str, sizeof(str), "* %s take his badge, weapon and radio.", GetName(playerid));
- ProxDetector(15, playerid, str, 0xCC56CCFF);
- SetPlayerArmour(playerid, 100.0);
- GivePlayerWeapon(playerid, WEAPON_DEAGLE, 100);
- GivePlayerWeapon(playerid, WEAPON_NITESTICK, 1);
- GivePlayerWeapon(playerid, WEAPON_SPRAYCAN, 1000);
- return 1;
- }
- else
- {
- new str[128];
- IsOnDuty[playerid] = false;
- SendClientMessage(playerid, -1, "[{82CAFF}Infomation{FFFFFF}] You are no longer on duty");
- format(str, sizeof(str), "* %s put his badge, weapon, radio into his locker.", GetName(playerid));
- ProxDetector(15, playerid, str, 0xCC56CCFF);
- SetPlayerArmour(playerid, 0.0);
- ResetPlayerWeapons(playerid);
- return 1;
- }
- }
- //------------------------------------------------------------------------------------------------
- CMD:m(playerid, params[])
- {
- if(!LawE(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You are not allowed to use this command");
- if(!duty(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You need be on duty");
- if(U_Stats[playerid][pFaction] != 1 && U_Stats[playerid][pFaction] != 2) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You aren't allowed to use this command");
- new text[150];
- if(sscanf(params, "s[149]", text)) return SendClientMessage(playerid, -1, "[{82CAFF}Use{FFFFFF}] /m [Message]");
- format(text, sizeof(text), "{ff0000}((%s | %s)) {FFFFFF}%s", GetName(playerid), Factions[U_Stats[playerid][pFaction]-1][fShortName], text);
- ProxDetector(30, playerid, text, -1);
- return 1;
- }
- //------------------------------------------------------------------------------------------------
- CMD:r(playerid, params[])
- {
- if(!LawE(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You are not allowed to use this command");
- if(!duty(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You need be on duty");
- new text[150];
- if(sscanf(params, "s[149]", text)) return SendClientMessage(playerid, -1, "[{82CAFF}Use{FFFFFF}] /r [Message]");
- foreach(new i : Player)
- {
- if(U_Stats[playerid][pFaction] != U_Stats[i][pFaction]) continue;
- format(text, sizeof(text), "(Radio) %s : %s", GetName(playerid), text);
- SendClientMessage(i, 0x336BA3FF, text);
- }
- return 1;
- }
- //------------------------------------------------------------------------------------------------
- CMD:d(playerid, params[])
- {
- if(!LawE(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You are not allowed to use this command");
- if(!duty(playerid)) return SendClientMessage(playerid, -1, "[{82CAFF}Error{FFFFFF}] You need be on duty");
- new text[150];
- if(sscanf(params, "s[149]", text)) return SendClientMessage(playerid, -1, "[{82CAFF}Use{FFFFFF}] /d (regional) [Message]");
- foreach(new i : Player)
- {
- if(U_Stats[playerid][pFaction] != U_Stats[i][pFaction]) continue;
- format(text, sizeof(text), "(%s) %s %s : %s", Factions[U_Stats[playerid][pFaction]-1][fShortName], U_Stats[playerid][pRank], GetName(playerid), text);
- SendClientMessage(i, 0xe62e00FF, text);
- }
- return 1;
- }
- //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Add Comment
Please, Sign In to add comment