13.02.2019, 15:01
Seeking professional mapper, the gigs are paid. Must be top notch, follow through on discord Jord#4894
Recruiting Developer. Our SA:MP Fantasy Roleplay community is recruiting a Gamemode Developer, we are searching for someone with who has plenty of time to spend, and isn't working on any other projects as we're seeking for someone that is willing to work on a large gamemode, and knows how to build it up from the bottom to the top. What do we expect from the developer: - Capable of working alone - Common sense - Can sustain frustrating times, and stress. - English communication - Is willing to provide us with text updates at least every 2 days - Is capable of working on a fairly big list of features - Has knowledge in: ColAndreas, NPC's, Textdraws, the ins and out of a roleplay gamemode We expect common sense, the developer reports to us every two days what he has been working on, even if he hasn't been working on anything. He keeps us up to date with issues etcetera. Constant communication with us is a must. Yes, you'll be rewarded a sum of money for your hard work. But you must prove that you are capable of this position and why we should hire you, you are basically the construction engineer of our home, we expect professionalism. Interested in this challenge, and you think you can help us out? Don't hesitate to contact us through Discord, we'll be asking questions, and most likely also ask you about your past projects. Contact details: Pear#1234, :hearts:Coles#9828, Skittles#6451 |
COMMAND:jail(playerid, params[])
{
if(playerData[playerid][playerLoggedIn])
{
if(playerData[playerid][playerLevel] >= 1)
{
// Set-up our variables etc
new PlayerToJail, JailTime, Reason[128], Msg[328], Name[24], jailedBy[24], MsgAll[328];
if (sscanf(params, "uis[128]", PlayerToJail, JailTime, Reason))
{
// Incorrect params used
SendClientMessage(playerid, COLOR_ORANGE, "Usage: \"jail <PlayerToJail> <JailTime> <Reason>\"");
}
else
{
if (IsPlayerConnected(PlayerToJail)) // If the player is a valid playerid (he's connected)
{
if(playerData[PlayerToJail][playerLoggedIn])
{
if(playerData[playerid][playerLevel] >= playerData[PlayerToJail][playerLevel])
{
if(JailTime >= 1)
{
// Get the name of the player who jailed the player
GetPlayerName(playerid, jailedBy, sizeof(jailedBy));
// Get the name of the player who's being sent to jail
GetPlayerName(PlayerToJail, Name, sizeof(Name));
for(new p; p < MAX_PLAYERS; p++)
{
new pName[24];
GetPlayerName(p, pName, sizeof(pName));
if(!strcmp(pName, Name))
{
// Send the jailed player a message who jailed him, why he's been jailed and how long
format(Msg, sizeof(Msg), "{A9C4E4}An administrator has jailed you for %i seconds {FE9A2E}[REASON: %s]{FFFFFF}", JailTime, Reason);
SendClientMessage(p, COLOR_WHITE, Msg);
}
else
{
format(MsgAll, sizeof(MsgAll), "{A9C4E4}An administrator has sent %s(%i) to jail.", Name, PlayerToJail);
SendClientMessage(p, COLOR_WHITE, MsgAll);
}
}
new aMsg[300];
for (new i=0; i<MAX_PLAYERS; i++)
{
if (playerData[i][playerLevel] >= 1)
{
format(aMsg, sizeof(aMsg), "{FF0770}[ADMIN] {FFFFFF}%s(%i) has jailed %s(%i) for %i seconds {FE9A2E}[REASON: %s]{FFFFFF}", playerData[playerid][playerNamee], playerid, playerData[PlayerToJail][playerNamee], PlayerToJail, JailTime, Reason);
SendClientMessage(i, COLOR_WHITE, aMsg);
}
}
// Call jail function
sendPlayerJail(PlayerToJail, JailTime, playerid, 0);
playerData[PlayerToJail][playerAdminJailed] = 1;
ShowPlayerDialog(PlayerToJail, 91827, DIALOG_STYLE_MSGBOX, "Admin Jailed", "You have been sent to jail by an administrator.", "OK", "");
new log[250];
format(log, sizeof(log), "%s(%i) has jailed %s(%i) for %i seconds", playerData[playerid][tempAdminName], playerid, Name, PlayerToJail, JailTime);
SendAdminText(playerid, log);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}You cannot use this command on that player.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}Jail time must be at least 1 second.");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}That player is not logged in!");
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}That player is not online!");
}
}
}
else
{
return 0;
}
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{B7B7B7}[SERVER] {FFFFFF}You must be logged in to use commands.");
}
return 1;
}