CMD:dropgun(playerid, params[]) { if(isnull(params)) { SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /dropgun [weapon name]"); SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: sdpistol, shotgun, 9mm, mp5, uzi, tec9, rifle, deagle, ak47, m4, spas12, sniper, camera"); SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: flowers, knuckles, baseballbat, cane, shovel, poolcue, golfclub, katana, dildo, parachute"); if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: knife"); } if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pDivision] == 2 || (PlayerInfo[playerid][pMember] == 4 && PlayerInfo[playerid][pRank] >= 5) || PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pMember] == 11) { SendClientMessageEx(playerid, COLOR_GRAD2, "Available Names: nitestick, mace, smoke, chainsaw, fire"); } return 1; } if(IsPlayerInAnyVehicle(playerid)) { SendClientMessageEx (playerid, COLOR_GRAD2, "You can not drop weapons in a vehicle!"); return 1; } if(GetPVarInt(playerid, "IsInArena") >= 0) { SendClientMessageEx(playerid, COLOR_WHITE, "You can't do this right now, you are in a arena!"); return 1; } if(GetPVarInt( playerid, "EventToken") != 0) { SendClientMessageEx(playerid, COLOR_GREY, "You can't use this while you're in an event."); return 1; } new string[128]; if(strcmp(params, "sdpistol", true) == 0) { if(PlayerInfo[playerid][pGuns][ 2 ] == 23) { if(pTazer[playerid] == 1) return SendClientMessageEx(playerid, COLOR_RED, "You cannot drop your tazer."); SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "You have dropped your silenced pistol."); format(string, sizeof(string), "* %s has dropped their silenced pistol.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); RemovePlayerWeapon(playerid, 23); } else { SendClientMessageEx(playerid, COLOR_GREY, "You do not have that weapon!"); } } else { SendClientMessageEx(playerid, COLOR_GRAD1, "You have entered an invalid weapon name."); } return 1; }
When you want to make successful server, you have to write gamemode by yourself
|
lol, that's actually very incorrect. If that was true, we wouldn't have multiple GF edits in the server list, and they wouldn't be populated.
|