Sziasztok!
Átírtam az ladminban a parancsokat zcmd-re és ha például akarok magamnak adni egy jetpackot akkor ezt írja hogy nem létezik ilyen játékos!
Mi lehet a hiba?
Jetpack script ( csakis a \"dcmd_\" szót cseréltem \"CMD:\" -ra mást nem írtam át benne ):
CMD:jetpack(playerid,params[]) {
if(!strlen(params)) {
if(PlayerInfo[playerid][Level] >= 2 || IsPlayerAdmin(playerid)) {
SendClientMessage(playerid,blue,\"Jetpack Spawned.\");
CMDMessageToAdmins(playerid,\"JETPACK\");
return SetPlayerSpecialAction(playerid, 2);
} else return SendClientMessage(playerid,red,\"ERROR: You are not a high enough level to use this command\");
} else {
new player1, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];
player1 = strval(params);
if(PlayerInfo[playerid][Level] >= 4) {
if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID && player1 != playerid) {
CMDMessageToAdmins(playerid,\"JETPACK\"); SetPlayerSpecialAction(player1, 2);
GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));
format(string,sizeof(string),\"Administrator \\\"%s\\\" has given you a jetpack\",adminname); SendClientMessage(player1,blue,string);
format(string,sizeof(string),\"You have given %s a jetpack\", playername);
return SendClientMessage(playerid,blue,string);
} else return SendClientMessage(playerid, red, \"Player is not connected or is yourself\");
} else return SendClientMessage(playerid,red,\"ERROR: You are not a high enough level to use this command\");
}
}