Posts: 1,642
Threads: 35
Joined: Nov 2011
Reputation:
0
Ah.. Y el comando que quieres arreglar?
Posts: 4,930
Threads: 467
Joined: Dec 2010
Quote:
Originally Posted by Zume-Zero
Intйntalo asн
pawn Код:
CMD:aduty(playerid){ new adutyonstring[128]; if(pInfo[playerid][pLogged] == 1){ if(pInfo[playerid][pAdminLevel] >= 1){ if(pInfo[playerid][pAdminDuty] == 0){ pInfo[playerid][pAdminDuty] = 1; format(adutyonstring, sizeof(adutyonstring), "%s is now on admin duty" ,PlayerName(playerid)); SendClientMessageToAll(-1,adutyonstring); SetPlayerColor(playerid,COLOR_RED); SetPlayerSkin(playerid,217); SetPlayerHealth(playerid,999999.0); SendClientMessage(playerid,COLOR_RED,"Remember to /aduty when you play as regular player."); } else{ pInfo[playerid][pAdminDuty] = 0; format(adutyoffstring, sizeof(adutyoffstring), "%s is now off admin duty" ,PlayerName(playerid)); SendClientMessageToAll(-1,adutyoffstring); if(team[playerid] == TEAM_ZOMBIE){ SetPlayerColor(playerid,COLOR_ZOMBIE); } if(team[playerid] == TEAM_HUMAN){ SetPlayerColor(playerid,COLOR_HUMAN); } SetPlayerHealth(playerid,100); } } } else{ SendClientMessage(playerid,-1,""chat""COL_LIGHTBLUE" Nice try u fucking fag gay!"); printf("%s has been kicked for trying to use a command without being logged in!", PlayerName(playerid)); Kick(playerid); } return 1; }
Por cierto, me parece que por el Kick no mostrarнa el mensaje, si es asн podrнas ver sobre el bug que tiene la funciуn "Kick": https://sampforum.blast.hk/showthread.php?tid=417533
|
el bug es con ambas funciones Kick y Ban.
https://sampwiki.blast.hk/wiki/Kick
https://sampwiki.blast.hk/wiki/Ban
saludos
Posts: 1,642
Threads: 35
Joined: Nov 2011
Reputation:
0
Ya tienes definido "adutyonstring" en otra parte. cбmbiale todo lo que diga "adutyonstring" en ese comando a cualquier otra cosa
Posts: 29
Threads: 7
Joined: Aug 2014
Reputation:
0
oooooo gracias ya me funciona, gracias Zume-Zero cmo se da reputacion xD soy nuevo y no se como xD