Hab ne frage:
Wie könnte ich das so machen das ich es in meinem GF machen kan?
//-------------------------------------San Fierro Pass-------------------------------------
if(strcmp(cmd, "/sfpassg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerToPoint(25.0,playerid,359.2877,161.9373,1025.7964))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /sfpassg [playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Du hast %s einen Pass für San Fierro gegeben.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Präsident %s hat dir einen Pass für San Fierro gegeben.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pSFLic] = 1;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, ".:Sie sind nicht im Büro Sir:.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist nicht der Präsident!");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/sfpassw", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerToPoint(25.0,playerid,359.2877,161.9373,1025.7964))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /sfpassw [playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Du hast %s die Aufenthaltserlaubnis in SF entzogen.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s hat dir die Aufenthaltserlaubnis in SF entzogen.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du musst San Fierro nun Verlassen, da die Cops dich sonst Verhaften");
PlayerInfo[giveplayerid][pSFLic] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, ".:Sie sind nicht im Büro Sir:.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist nicht der Präsident!");
return 1;
}
}
return 1;
}
//-----------------------------Bayside-Passport---------------------------------
if(strcmp(cmd, "/bspassg", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerToPoint(25.0,playerid,359.2877,161.9373,1025.7964))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /bspassg [playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Du hast %s einen Pass für Bayside gegeben.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* Präsident %s hat dir einen Pass für Bayside gegeben.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
PlayerInfo[giveplayerid][pBSLic] = 1;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, ".:Sie sind nicht im Büro Sir:.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist nicht der Präsident!");
return 1;
}
}
return 1;
}
if(strcmp(cmd, "/bspassw", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerToPoint(25.0,playerid,359.2877,161.9373,1025.7964))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "FEHLER: /bspassw [playerid]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
format(string, sizeof(string), "* Du hast %s die Aufenthaltserlaubnis in Bayside entzogen.",giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "* %s hat dir die Aufenthaltserlaubnis in Bayside entzogen.",sendername);
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Du musst Bayside nun Verlassen, da die Cops dich sonst Verhaften");
PlayerInfo[giveplayerid][pBSLic] = 0;
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Spieler ist Offline!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, ".:Sie sind nicht im Büro Sir:.");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist nicht der Präsident!");
return 1;
}
}
return 1;
}
bitte helft mir
//KEINE HILFE?????????