29.03.2016, 20:55
Hi!
Replace your code with this:
Compile the script and restart the server. What is printing in the console (server.log) when you use this command?
Replace your code with this:
PHP код:
if(strcmp(cmdtext, "/apdlocker", true) == 0) // LSPD Locker
{
if(IsPlayerConnected(playerid))
{
printf("IsACop: %i",IsACop(playerid));
if(IsACop(playerid))
{
if(IsPlayerConnected(playerid)//Would ask for a cord but I changed it to see if that was the problem)
{
DisplayDialogForPlayer(playerid, 10);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, " You are not in your locker room !");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " You are not a MPD officer!");
return 1;
}
}
return 1;
}