10.04.2009, 20:49
So,found a bug.
In line 202 theres
I used it for some tests.
Change it to
@DauerDicht:
I`ll explain it in English, even i`m German like you.
Its an English Forum and probably some1 have got the same question ?!
First, add an i (AddStaticPickup) to show,that there is a Job to get.
Then add the Trigger (
For the next step, you need the "/duty" command to change the skin.
Then you see
, but u haven`t decalred it yet,so add to the top of the Gamemode
That`s it :P
In line 202 theres
Код:
if (GetPlayerSkin(playerid) == 179)
Change it to
Код:
if (GetPlayerSkin(playerid) == 61)
I`ll explain it in English, even i`m German like you.
Its an English Forum and probably some1 have got the same question ?!
First, add an i (AddStaticPickup) to show,that there is a Job to get.
Then add the Trigger (
Код:
if(strcmp(cmd, "/job", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 0)
{
if (GetPlayerState(playerid) == 1 && PlayerToPoint(1.0, playerid,X,Y,Z))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie kцnnen hier Pilot werden.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Vertragslaufzeit mind. 5 Stunden.");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Mцchten sie den Job, so geben Sie /accept job ein.");
GettingJob[playerid] = 1;
Код:
else if(PlayerInfo[playerid][pJob] == 16)
{
if(JobDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie ziehen ihre Uniform aus und verlassen den Dienst.");
JobDuty[playerid] = 0;
Pilots -= 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Sie ziehen ihre Uniform an und treten in Dienst");
JobDuty[playerid] = 1;
SetPlayerSkin(playerid,61); //SKin changed to be able to use the Fligt mission
SetPlayerColor(playerid,COLOR_DARKPURPLE);
Pilots += 1;
}
Quote:
|
Pilots += 1; |
Код:
new Pilots = 0;

