26.06.2009, 12:52
Let me show you what i'm working with. Another thing to note, is that I want it to save the players job until they /quitjob, in which case it would reset their "job" back to Civilian. They would keep it through log out and everything.
Here is the code i'm working with, without Dini implimented:
That's what I have now.
Sorry for not picking up on this too quickly - its pretty rough at first.
Here is the code i'm working with, without Dini implimented:
Код:
if(strcmp("/apply", cmdtext, true, 6) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(1, playerid, 2227.7698,-1718.5902,13.5216)) // Location that the player has to be at to get the job.
{
if (GetPlayerTeam(playerid) == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "LSPD cannot get Mercenary!");
}
if (GetPlayerTeam(playerid) == 2)
{
SendClientMessage(playerid, COLOR_WHITE, "FBI cannot get Mercenary!");
}
if (GetPlayerTeam(playerid) == 3)
{
SendClientMessage(playerid, COLOR_WHITE, "You already have a job!");
}
if (GetPlayerTeam(playerid) == 4)
{
SendClientMessage(playerid, COLOR_WHITE, "You already have a job!");
}
if (GetPlayerTeam(playerid) == 5)
{
SendClientMessage(playerid, COLOR_WHITE, "You already have a job!");
}
if (GetPlayerTeam(playerid) == 6)
{
SendClientMessage(playerid, COLOR_WHITE, "You are already a Mercenary!");
}
if (GetPlayerTeam(playerid) == 7)
{
SendClientMessage(playerid, COLOR_WHITE, "You already have a job!");
}
else
{
SetPlayerTeam(playerid, 3);
}
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You've taken up the hour contract of being a Mercenary.");
}
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Type /help for more information on this job.");
}
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "To quit this job when your contract is over, type /quitjob.");
}
}
}
return 1;
}
Sorry for not picking up on this too quickly - its pretty rough at first.

