11.08.2012, 11:09
Que isso \/
Fez Errado nao acha
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
format(string, sizeof(string), "O player %s(ID %d) desligou o Weapon Skill System",nome, playerid);
if (strcmp("/ativarwss", cmdtext, true, 10) == 0)
{
if(FSAtivado == 0)
{
if(IsPlayerAdmin(playerid))
{
FSAtivado = 1;
printf(string);
SendClientMessage(playerid, -1, "Weapon Skill System desativado com sucesso!");
}
}
else if(FSAtivado == 1)
{
SendClientMessage(playerid, -1, "Weapon Skill System ativado com sucesso!");
}
return 1;
}
return 0;
}