09.10.2011, 15:59
pawn Код:
if(strcmp(cmd, "/policiamilitar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pSocio] >= 1)
{
PlayerInfo[playerid][pMembro] = 1;
PlayerInfo[playerid][pCargo] = 4;
SetPlayerSkin(playerid,280);
PlayerInfo[playerid][pChar] = 280;
SetPlayerSpawn(playerid);
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, 256, "Sуcio: %s Entrou Para Policia Militar.",name);
ProxDetector(70.0, playerid, string, COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE,COLOR_DBLUE);
}
}
return 1;
}
PHP код:
[PSocio]