new string[128];new name[MAX_PLAYER_NAME];Ezeket írd a parancshoz vagy ahol vannak az errorok
stock GetName(playerid){new name[MAX_PLAYER_NAME]; GetPlayerName( playerid, name, sizeof(name) );return name; }
stock GetName(playerid){new name[MAX_PLAYER_NAME]; GetPlayerName( playerid, name, sizeof(name) );return name; } módba ez ott van?zcmd be van rakva a módba?Ott van...Egyértelmû hogy zcmd-t használok
CMD:aduty(playerid, params[]){if(IsPlayerConnected(playerid)){IDE A LUXADMIN SORT HOGY ADMIN LEGYÉL{format(string, sizeof(string), \"Adminisztrátor %s belépet a szolgálatba! Ha segítség kellene írj neki /pm -ben!\", sendername);GetPlayerName(playerid, sendername, sizeof(sendername));SendClientMessageToAll(COLOR_LIGHTRED, string);SetPlayerColor(playerid,COLOR_RED);}else{SendClientMessage(playerid, COLOR_RED, \" Nincsen engedélyed használni ezt a parancsot!\");}}return 1;}CMD:adutyki(playerid, params[]){if(IsPlayerConnected(playerid)){IDE ÍRD A LUXADMINBOL AZ ADMIN SORT..{format(string, sizeof(string), \"Adminisztrátor %s killépet a szolgálatatbol!\", sendername);GetPlayerName(playerid, sendername, sizeof(sendername));SendClientMessageToAll(COLOR_LIGHTRED, string);SetPlayerColor(playerid,COLOR_ULTRARED);}else{SendClientMessage(playerid, COLOR_GRAY, \" Nem vagy adminisztrátor!\");}}return 1;}
CMD:raszolgalat(playerid, params[]){ if(IsPlayerAdmin(playerid)) { if(GetPVarInt(playerid, \"Aszolgalat\") == 0) { new name[MAX_PLAYER_NAME], string[128], str[128]; Adminszolgalat[playerid] = Create3DTextLabel( \"Admin szolgálatban\", 0xE60000FF, 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( Adminszolgalat[playerid], playerid, 0.0, 0.0, 0.4 ); SetPlayerSkin(playerid, 217);// Ezt átírhatod SetPlayerHealth(playerid, 100000); SetPVarInt(playerid, \"Aszolgalat\", 1); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"<< %s(%d) Rcon Admin Szolgálatba állt! Örök élete van!\", name, playerid); SendClientMessageToAll(0xFF0000AA, string); } } else if(GetPVarInt(playerid, \"Aszolgalat\") == 1) { SetPVarInt(playerid, \"Aszolgalat\", 0); Delete3DTextLabel(Adminszolgalat[playerid]); } return 1;}CMD:szolgalatki(playerid, params[]){ if(IsPlayerAdmin(playerid)) { new name[MAX_PLAYER_NAME], string[128], str[128]; SetPlayerSkin(playerid, 5); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"<< %s(%d) Rcon Adminisztrátor killépet a szolgálatból!\", name, playerid); SendClientMessageToAll(0xFF0000AA, string); format(str, sizeof str, \"%s: %s\", GetName(playerid), text); SendPlayerMessageToAll(playerid, str); SetPVarInt(playerid, \"Aszolgalat\", 0); Delete3DTextLabel(Adminszolgalat[playerid]); return 1;}
Parancsokat javítottamCMD:raszolgalat(playerid, params[]){ if(IsPlayerAdmin(playerid)) { if(GetPVarInt(playerid, \"Aszolgalat\") == 0) { new name[MAX_PLAYER_NAME], string[128], str[128]; Adminszolgalat[playerid] = Create3DTextLabel( \"Admin szolgálatban\", 0xE60000FF, 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( Adminszolgalat[playerid], playerid, 0.0, 0.0, 0.4 ); SetPlayerSkin(playerid, 217);// Ezt átírhatod SetPlayerHealth(playerid, 100000); SetPVarInt(playerid, \"Aszolgalat\", 1); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"<< %s(%d) Rcon Admin Szolgálatba állt! Örök élete van!\", name, playerid); SendClientMessageToAll(0xFF0000AA, string); } } else if(GetPVarInt(playerid, \"Aszolgalat\") == 1) { SetPVarInt(playerid, \"Aszolgalat\", 0); Delete3DTextLabel(Adminszolgalat[playerid]); } return 1;}CMD:szolgalatki(playerid, params[]){ if(IsPlayerAdmin(playerid)) { new name[MAX_PLAYER_NAME], string[128], str[128]; SetPlayerSkin(playerid, 5); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"<< %s(%d) Rcon Adminisztrátor killépet a szolgálatból!\", name, playerid); SendClientMessageToAll(0xFF0000AA, string); format(str, sizeof str, \"%s: %s\", GetName(playerid), text); SendPlayerMessageToAll(playerid, str); SetPVarInt(playerid, \"Aszolgalat\", 0); Delete3DTextLabel(Adminszolgalat[playerid]); return 1;}
CMD:raszolgalat(playerid, params[]){ if(IsPlayerAdmin(playerid)) { if(GetPVarInt(playerid, \"Aszolgalat\") == 0) { new name[MAX_PLAYER_NAME], string[128], str[128]; Adminszolgalat[playerid] = Create3DTextLabel( \"Admin szolgálatban\", 0xE60000FF, 0.0, 0.0, 2.0, 40, 0, 0 ); Attach3DTextLabelToPlayer( Adminszolgalat[playerid], playerid, 0.0, 0.0, 0.4 ); SetPlayerSkin(playerid, 217);// Ezt átírhatod SetPlayerHealth(playerid, 100000); SetPVarInt(playerid, \"Aszolgalat\", 1); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"<< %s(%d) Rcon Admin Szolgálatba állt! Örök élete van!\", name, playerid); SendClientMessageToAll(0xFF0000AA, string); } } else if(GetPVarInt(playerid, \"Aszolgalat\") == 1) { SetPVarInt(playerid, \"Aszolgalat\", 0); Delete3DTextLabel(Adminszolgalat[playerid]); } return 1;}CMD:szolgalatki(playerid, params[]){ if(IsPlayerAdmin(playerid)) { new name[MAX_PLAYER_NAME], string[128], str[128]; SetPlayerSkin(playerid, 5); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(string, sizeof(string), \"<< %s(%d) Rcon Adminisztrátor killépet a szolgálatból!\", name, playerid); SendClientMessageToAll(0xFF0000AA, string); format(str, sizeof str, \"%s: %s\", GetName(playerid), text); SendPlayerMessageToAll(playerid, str); SetPVarInt(playerid, \"Aszolgalat\", 0); Delete3DTextLabel(Adminszolgalat[playerid]); } return 1;}stock GetName(playerid){ new n[24]; GetPlayerName(playerid, n, 24); return n;}