COMMAND:serviceadmin(playerid, params[])
{
SendAdminText(playerid, "/serviceadmin", params);
if (APlayerData[playerid][LoggedIn] == false) return 0;
if (APlayerData[playerid][PlayerLevel] < 1) return 0;
new AdminName[24];
new string[128];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string),"L'administrateur %s c'est mis en service !", AdminName);
SendClientMessageToAll(0xFFFFFF, string);
SetPlayerSkin(playerid, 217);
SendClientMessage(playerid,0xFFFFFFFF, "Vous etes passez en admin en service !");
SetPlayerColor(playerid, 0xFF0000FF);
return 1;
}
COMMAND:stopserviceadmin(playerid, params[])
{
SendAdminText(playerid, "/stopserviceadmin", params);
if (APlayerData[playerid][LoggedIn] == false) return 0;
if (APlayerData[playerid][PlayerLevel] < 1) return 0;
new AdminName[24];
new string[128];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string),"L'administrateur %s c'est mis en hors service admin !", AdminName);
SendClientMessageToAll(0xFFFFFF, string);
SetPlayerSkin(playerid, 48);
SendClientMessage(playerid,0xFFFFFFFF, "Vous etes maintenant en hors service admin !");
return 1;
}
APlayerData[playerid][PlayerColour] = GetPlayerColor(playerid);
SetPlayerColor(playerid, APlayerData[playerid][PlayerColour]);
C:\Users\mickael\Desktop\Serveur SAMP\gamemodes\PPC.pwn(17948) : warning 213: tag mismatch C:\Users\mickael\Desktop\Serveur SAMP\gamemodes\PPC.pwn(17965) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Warnings.
COMMAND:serviceadmin(playerid, params[])
{
SendAdminText(playerid, "/serviceadmin", params);
if (APlayerData[playerid][LoggedIn] == false) return 0;
if (APlayerData[playerid][PlayerLevel] < 1) return 0;
new AdminName[24];
new string[128];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string),"L'administrateur %s c'est mis en service !", AdminName);
SendClientMessageToAll(0xFFFFFF, string);
SetPlayerSkin(playerid, 217);
SendClientMessage(playerid,0xFFFFFFFF, "Vous etes passez en admin en service !");
APlayerData[playerid][PlayerColour] = GetPlayerColor(playerid);
SetPlayerColor(playerid, 0xFF0000FF);
return 1;
}
COMMAND:stopserviceadmin(playerid, params[])
{
SendAdminText(playerid, "/stopserviceadmin", params);
if (APlayerData[playerid][LoggedIn] == false) return 0;
if (APlayerData[playerid][PlayerLevel] < 1) return 0;
new AdminName[24];
new string[128];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string),"L'administrateur %s c'est mis en hors service admin !", AdminName);
SendClientMessageToAll(0xFFFFFF, string);
SetPlayerSkin(playerid, 48);
SendClientMessage(playerid,0xFFFFFFFF, "Vous etes maintenant en hors service admin !");
SetPlayerColor(playerid, APlayerData[playerid][PlayerColour]);
return 1;
}
COMMAND:serviceadmin(playerid, params[])
{
SendAdminText(playerid, "/serviceadmin", params);
if (APlayerData[playerid][LoggedIn] == false) return 0;
if (APlayerData[playerid][PlayerLevel] < 1) return 0;
new AdminName[24];
new string[128];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string),"L'administrateur %s c'est mis en service !", AdminName);
SendClientMessageToAll(0xFFFFFF, string);
SetPlayerSkin(playerid, 217);
SendClientMessage(playerid,0xFFFFFFFF, "Vous etes passez en admin en service !");
APlayerData[playerid][PlayerColour] = GetPlayerColor(playerid); // this line warning
SetPlayerColor(playerid, 0xFF0000FF);
return 1;
}
COMMAND:stopserviceadmin(playerid, params[])
{
SendAdminText(playerid, "/stopserviceadmin", params);
if (APlayerData[playerid][LoggedIn] == false) return 0;
if (APlayerData[playerid][PlayerLevel] < 1) return 0;
new AdminName[24];
new string[128];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string),"L'administrateur %s c'est mis en hors service admin !", AdminName);
SendClientMessageToAll(0xFFFFFF, string);
SetPlayerSkin(playerid, 48);
SendClientMessage(playerid,0xFFFFFFFF, "Vous etes maintenant en hors service admin !");
SetPlayerColor(playerid, APlayerData[playerid][PlayerColour]); // this line warning
return 1;
}
enum
{
PlayerColour
}
enum PlayerInfo
{
PlayerColour
}
new APlayerData [MAX_PLAYERS][PlayerInfo];
You should put your PlayerColour where you put PlayerLevel, LoggedIn and etc. - do not leave him alone
|