25.06.2017, 08:09
Algun cуdigo para evitar que los usuarios entren al requestclass mediante F3 ?
public OnPlayerRequestClass(playerid, classid)
{
if(pInfo[playerid][Logado] == false)
{
//...
}
else
{
Kick(playerid);
}
return 1;
}
public OnPlayerRequestClass(playerid, classid) { if(seleccionoclase[playerid] == true){ SpawnPlayer(playerid); return 0;} return 1; }
public OnPlayerRequestClass(playerid, classid) { if(Team[playerid] == TEAM_POLICIA || TEAM_TERRORISTA) { SpawnPlayer(playerid); } return 1; }
public OnPlayerRequestClass(playerid, classid) {
if(seleccionoclase[playerid] == true){ SpawnPlayer(playerid); return 0;} return 1; } |
C:\Left 4 dead\gamemodes\GMZ.pwn(738) : warning 213: tag mismatch Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
playerconnect: seleccionoclase[playerid] = false; disconnect: seleccionoclase[playerid] = false; spawn: seleccionoclase[playerid] = true;