CMD:on(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
new sg[128];
AdminDuty[playerid] = 1;
GetPlayerName(playerid,sg,MAX_PLAYER_NAME);
SetPlayerColor(playerid,COLOR_YELLOW);
SetPlayerHealth(playerid,999);
SetPlayerArmour(playerid,999);
SetPlayerSkin(playerid, 217);
format(sg,sizeof(sg),"{f79d27}ScorpionWorld RolePlay | {FFFFFF}Admin %s e na dolznost. [%d:%d:%d] ",sg,PlayerInfo[playerid][pHour], PlayerInfo[playerid][pMinute], PlayerInfo[playerid][pSecond]);
SendClientMessageToAll(COLOR_WHITE,sg);
}
CMD:off(playerid,params[])
{
if(PlayerInfo[playerid][pAdmin] == 1 )
{
new sg[128];
AdminDuty[playerid] = 0;
GetPlayerName(playerid,sg,MAX_PLAYER_NAME);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,0);
SetPlayerColor(playerid,COLOR_WHITE);
new originalskin = PlayerInfo[playerid][pChar];
SetPlayerSkin(playerid, originalskin);
format(sg,sizeof(sg),"{f79d27}ScorpionWorld RolePlay | {FFFFFF}Admin %s vekje ne e na dolznost.",sg);
SendClientMessageToAll(COLOR_WHITE,sg);
}
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[32];
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "Smetke/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
new var[64];
format(var, 64, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
Why did you post the same thread again? https://sampforum.blast.hk/showthread.php?tid=633024
It doesn't look like it's Y_INI at all... |
if(PlayerInfo[playerid][pGameMaster] >= 1) { new sg1[128]; new hour,minuite,second,AdminDolznost; AdminDolznost = gettime(hour,minuite,second); printf("%02d:%02d:%02d", hour, minuite, second); printf("Bevte na dolznost %d", AdminDolznost); GameMasterDuty[playerid] = gettime(); GetPlayerName(playerid,sg1,MAX_PLAYER_NAME); SetPlayerColor(playerid,COLOR_DBLUE); SetPlayerHealth(playerid,999); SetPlayerArmour(playerid,999); SetPlayerSkin(playerid, 217); format(sg1,sizeof(sg1),"{f79d27}ScorpionWorld RolePlay | {FFFFFF}GameMaster %s e na dolznost. | %02d:%02d:%02d ",sg1,(AdminDolznost / 60)); SendClientMessageToAll(COLOR_WHITE,sg1); }
if(PlayerInfo[playerid][pGameMaster] >= 1) { new sg1[128]; new hour,minuite,second,AdminDolznost; AdminDolznost = gettime(hour,minuite,second); printf("%02d:%02d:%02d", hour, minuite, second); printf("Bevte na dolznost %d", AdminDolznost); GameMasterDuty[playerid] = 0; gettime() - GameMasterDuty[playerid]; GetPlayerName(playerid,sg1,MAX_PLAYER_NAME); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,0); SetPlayerColor(playerid,COLOR_WHITE); new originalskin = PlayerInfo[playerid][pChar]; SetPlayerSkin(playerid, originalskin); format(sg1,sizeof(sg1),"{f79d27}ScorpionWorld RolePlay | {FFFFFF}GameMaster %s vekje ne e na dolznost. | %02d:%02d:%02d ",sg1,AdminDolznost); SendClientMessageToAll(COLOR_WHITE,sg1); }