Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:playsounds(playerid, params[])
- {
- new soundid;
- if(sscanf(params, "d", soundid)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /playsounds [soundid]");
- PlaySound(playerid, soundid);
- SendClientMessage(playerid, COLOR_GREEN, "Playing {FF0000}Sound!");
- return 1;
- }
- CMD:savestats(playerid, params[])
- {
- new file[300];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- format(file,sizeof(file),"nAdmin/Users/%s.ini",name);
- PlayerInfo[playerid][score] = GetPlayerScore(playerid);
- PlayerInfo[playerid][cash] = GetPlayerMoney(playerid);
- if(logged[playerid] == 1)
- {
- dini_IntSet(file, "Score", PlayerInfo[playerid][score]);
- dini_IntSet(file, "Money", PlayerInfo[playerid][cash]);
- dini_IntSet(file, "AdminLevel",PlayerInfo[playerid][AdminLevel]);
- dini_IntSet(file, "VipLevel", PlayerInfo[playerid][VipLevel]);
- dini_IntSet(file, "Banned", PlayerInfo[playerid][Banned]);
- dini_IntSet(file, "Muted", PlayerInfo[playerid][Muted]);
- dini_IntSet(file, "Deaths", PlayerInfo[playerid][Deaths]);
- dini_IntSet(file, "Kills", PlayerInfo[playerid][Kills]);
- }
- logged[playerid] = 0;
- GameTextForPlayer(playerid, "~r~Stats ~g~Successfully ~p~Saved!", 4000, 1);
- return 1;
- }
- CMD:stats(playerid,params[])
- {
- if(IsPlayerConnected(playerid))
- {
- new money = PlayerInfo[playerid][cash];
- new deaths = PlayerInfo[playerid][Deaths];
- new kills = PlayerInfo[playerid][Kills];
- new Score = PlayerInfo[playerid][score];
- new admin = PlayerInfo[playerid][AdminLevel];
- new vip = PlayerInfo[playerid][VipLevel];
- new string1[1024];
- format(string1, sizeof string1, "{44A1D0}Money: {FFFFFF}%d \n{44A1D0}Deaths: {FFFFFF}%d \n{44A1D0}Kills: {FFFFFF}%d \n{44A1D0}Score: {FFFFFF}%d \n{44A1D0}Admin Level: {FFFFFF}%d \n{44A1D0}Vip Level: {FFFFFF}%d", money, deaths, kills, Score, admin, vip);
- ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Your account Statistics:",string1,"Ok","");
- }
- return 1;
- }
- CMD:rules(playerid, params[])
- {
- ShowPlayerDialog(playerid, DIALOG_RULESCMD, DIALOG_STYLE_MSGBOX, "StreetRodZ Rules", "{FF0000}StreetRodZ Rules:\nYou may NOT begg for admin! doing so could result in a Ban!\nAdvertising will lead into a STRAIGHT ban!\nDo NOT ask for VIP! only way to get it is at {FF0000}www.streetrodzracers.tk\nSwearing/Insulting an Admin/Player will result in a ban/kick/mute!\nDont Spam the chat or you get kicked\n\nDisrespecting any of these rules will result in a ban!\n\nhave fun!", "Accept", "Decline");
- return 1;
- }
- CMD:pimp(playerid, params[])
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be the driver of the vehicle or be onfoot to use this command");
- if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be in a vehicle to use this command");
- ShowPlayerDialog(playerid, DIALOG_PIMP, DIALOG_STYLE_LIST, "Pimp Your Ride", "Paintjobs\nWheels\nHydraulics\nBass Boost", "Select", "Cancel");
- return 1;
- }
- CMD:santahat(playerid, params[])
- {
- if(PlayerInfo[playerid][HasSantaHat] == false)
- {
- SetPlayerAttachedObject(playerid, SANTAHAT, 19065, 2, 0.120000, 0.040000, -0.003500, 0, 100, 100, 1.4, 1.4, 1.4);
- GameTextForPlayer(playerid, "~r~Merry ~g~X~w~-~b~Mas", 2000, 6);
- PlayerInfo[playerid][HasSantaHat] = true;
- }
- else if(PlayerInfo[playerid][HasSantaHat] == true)
- {
- RemovePlayerAttachedObject(playerid, SANTAHAT);
- PlayerInfo[playerid][HasSantaHat] = false;
- }
- return 1;
- }
- CMD:sh(playerid, params[])
- {
- return cmd_santahat(playerid, params);
- }
- CMD:shat(playerid, params[])
- {
- return cmd_santahat(playerid, params);
- }
- CMD:joinhns(playerid, params[])
- {
- if(PlayerInfo[playerid][Jailed] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command when you are in jail");
- if(EventStarted == true)
- {
- new file[256], Float:x, Float:y, Float:z, Interior;
- format(file,sizeof(file),"nAdmin/Config/Events.txt");
- x = dini_Float(file, "CoordX");
- y = dini_Float(file, "CoordY");
- z = dini_Float(file, "CoordZ");
- Interior = dini_Int(file, "Interior");
- SetPlayerInterior(playerid, Interior);
- SetPlayerPos(playerid, x, y, z);
- SetPlayerVirtualWorld(playerid, 0);
- PlayerInfo[playerid][JoinedEvent] = true;
- }
- else if(EventStarted == false) return SendClientMessage(playerid, COLOR_RED, "ERROR: there is no event started or there is already an event going on.");
- return 1;
- }
- CMD:car(playerid, params[])
- {
- if(PlayerInfo[playerid][Jailed] == true) return SendClientMessage(playerid, COLOR_RED, "You can't use this command when you are in jail");
- if(PlayerInfo[playerid][World] != DMWorldID && PlayerInfo[playerid][World] != TDMWorldID)
- {
- if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_RED, "ERROR: you need to be the driver of the vehicle or be onfoot to use this command");
- new aVehicle[64], Color1, Color2;
- if(sscanf(params, "s[64]I(-1)I(-1)", aVehicle, Color1, Color2)) return SendClientMessage(playerid,COLOR_YELLOW, "Correct usage: /car [car ID/name] [color1] [color2]");
- new veh = GetVehicleModelID(aVehicle);
- if(veh < 400 || veh > 611) return SendClientMessage(playerid,COLOR_RED, "ERROR: This is not a valid vehicle name! Please try again ");
- if(IsPlayerInAnyVehicle(playerid)) DestroyVehicle(GetPlayerVehicleID(playerid));
- new Float:Pos[4];
- GetPlayerPos(playerid, Pos[0],Pos[1],Pos[2]); GetPlayerFacingAngle(playerid, Pos[3]);
- new PVeh = CreateVehicle(veh, Pos[0], Pos[1], Pos[2], Pos[3]+90, Color1, Color2, -1);
- LinkVehicleToInterior(PVeh, GetPlayerInterior(playerid));
- SetVehicleVirtualWorld(PVeh, GetPlayerVirtualWorld(playerid));
- PutPlayerInVehicle(playerid, PVeh, 0);
- vehhasmissile[veh] = 0;
- vehhasminigun[veh] = 0;
- vehhascargo[veh] = 0;
- vehhaswindshieldupgrade[veh] = 0;
- vehhascarwreck[veh] = 0;
- SendCommandToAdmins(playerid,"/car");
- GameTextForPlayer(playerid, "~y~Enjoy your new ~r~ride", 2000, 1);
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_RED, "ERROR: you can't use this command in this world");
- }
- CMD:getplut(playerid, params[])
- {
- PlayerInfo[playerid][HasPlutonium] = 2;
- return 1;
- }
- CMD:fightstyles(playerid, params[])
- {
- if(PlayerInfo[playerid][World] == DMWorldID)
- {
- ShowPlayerDialog(playerid, DIALOG_FIGHTSTYLES, DIALOG_STYLE_LIST, "Fighting Styles Available", "Style 1:\t{FF0000}Normal\nStyle 2:\t{00FF00}Boxing\nStyle 3:\t{0000FF}Kung-Fu\nStyle 4:\t{FF6400}Kneehead\nStyle 5:\t{00C2FF}Grab Kick\nStyle 6:\t{FF00FF}Elbow", "Change", "Cancel");
- SendCommandToAdmins(playerid,"/fightstyles");
- }
- else return SendClientMessage(playerid, COLOR_RED, "ERROR: you may only use this command in the Deathmatch World");
- return 1;
- }
- CMD:fstyles(playerid, params[])
- {
- return cmd_fightstyles(playerid, params);
- }
- CMD:repair(playerid, params[])
- {
- if(PlayerInfo[playerid][World] == TDMWorldID) return SendClientMessage(playerid, COLOR_RED, "you can't use this command in this world");
- SetVehicleHealth(GetPlayerVehicleID(playerid), 1000);
- GameTextForPlayer(playerid, "~g~car~r~ repaired", 2000, 1);
- SendCommandToAdmins(playerid,"/repair");
- return 1;
- }
- CMD:flip(playerid, params[])
- {
- if(PlayerInfo[playerid][World] == TDMWorldID) return SendClientMessage(playerid, COLOR_RED, "you can't use this command in this world");
- FlipVehicle(playerid);
- SendCommandToAdmins(playerid,"/flip");
- return 1;
- }
- CMD:sorry(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /sorry [playerid]");
- if(targetid != INVALID_PLAYER_ID && targetid != playerid)
- {
- new tname[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], string[128];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(targetid, tname, sizeof(tname));
- format(string, sizeof(string), "%s wants %s to know that he is Sorry, could you forgive me %s?", name, tname, tname);
- SendClientMessageToAll(PLAYERCOLOR_AQUA, string);
- SendCommandToAdmins(playerid,"/sorry");
- }
- else return SendClientMessage(playerid, COLOR_RED, "ERROR: invalid playerid or playerid is yourself");
- return 1;
- }
- CMD:forgive(playerid, params[])
- {
- new targetid;
- if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /forgive [playerid]");
- if(targetid == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "ERROR: invalid playerid");
- SendCommandToAdmins(playerid,"/forgive");
- new name[MAX_PLAYER_NAME], tname[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(targetid, tname, sizeof(tname));
- new string[128];
- format(string, sizeof(string), "%s has accepted the appology and forgiven %s", name, tname);
- SendClientMessageToAll(PLAYERCOLOR_AQUA, string);
- return 1;
- }
- CMD:hate(playerid, params[])
- {
- new targetid, reason[128];
- if(sscanf(params, "us[128]", targetid, reason)) return SendClientMessage(playerid, COLOR_YELLOW, "Correct Usage: /hate [playerid] [reason]");
- if(targetid != INVALID_PLAYER_ID)
- {
- new tname[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- GetPlayerName(targetid, tname, sizeof(tname));
- new string[128];
- SendCommandToAdmins(playerid,"/hate");
- format(string, sizeof(string), "Player %s Hates %s, Reason: %s", name, tname, reason);
- SendClientMessageToAll(PLAYERCOLOR_AQUA, string);
- }
- else return SendClientMessage(playerid, COLOR_RED, "ERROR: invalid playerid");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement