11.07.2012, 23:04
I want make this comand
-I want that qhen i write /adminduty, mi name change to STAFF_(name)
-When i write toher time /adminduty mi and im offduty mi name back to mi real name
-A comand /name (mi name), i choose the name i want put in STAFF_ (name). Example. I write /name Peter, when im adminduty mi name will be STAFF_Peter
-Mi gm use Mysql
thiis is mi comand of adminduty
-I want that qhen i write /adminduty, mi name change to STAFF_(name)
-When i write toher time /adminduty mi and im offduty mi name back to mi real name
-A comand /name (mi name), i choose the name i want put in STAFF_ (name). Example. I write /name Peter, when im adminduty mi name will be STAFF_Peter
-Mi gm use Mysql
thiis is mi comand of adminduty
pawn Код:
if(strcmp(cmd, "/adminduty", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1 || IsPlayerAdmin(playerid))
{
if(PlayerInfo[playerid][pAdminDuty] == 0)
{
PlayerInfo[playerid][pAdminDuty] = 1;
GM_SetPlayerHealth(playerid,100000);
// SetPlayerColor(playerid,0xD900D3C8);
//printf("ADMINLOG: %s now are admin duty.", pName(playerid));
SendClientMessage(playerid,AzulClaro,"* Now you are 'Admin Duty'");
}
else
{
PlayerInfo[playerid][pAdminDuty] = 0;
GM_SetPlayerHealth(playerid,100);
// SetPlayerColor(playerid,0xFFFFFF00);
//printf("ADMINLOG: %s now are admin offduty.", pName(playerid));
SendClientMessage(playerid,AzulClaro,"* Now you are 'Admin OffDuty'");
}
}
else { SendClientMessage(playerid,Rojo,"* You arent menber of Staff!"); }
return 1;
}