22.07.2010, 16:49
Otimo tutorial Drakon.
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
public RestrictedArea(playerid)
{
if(IsPlayerInArea(playerid,-2484,-2542,-594,-625) == true) // LINHA 1278 - WARNING!
{
if(!IsPlayerAdmin(playerid) || AccInfo[playerid][Level] < 1)
{
SendClientMessage(playerid, 0xFF0000AA, "Get da Fuck out of ADMIN AREA.");
}
}return 1;
}
C:\Documents and Settings\Tiago Esteves\Ambiente de trabalho\Pawno - Scripting\Scripting\LuxAdmin.pwn(1278) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
public RestrictedArea(playerid)
{
if(IsPlayerInArea(playerid,-2484,-2542,-594,-625) ) //Arruma as Coordenadas *-*
{
if(!IsPlayerAdmin(playerid) || AccInfo[playerid][Level] < 1)
{
SendClientMessage(playerid, 0xFF0000AA, "Get da Fuck out of ADMIN AREA.");
}
}
return 1;
}
@nexco:
Tente: pawn Code:
|
Alguem me pde ajudar neste pequeno erro aqui por favor?
pawn Code:
pawn Code:
|
if(IsPlayerInArea(playerid,-2484,-2542,-594,-625) == true) // LINHA 1278 - WARNING!
й so arrumar o codigo ^^
se o player for adm nгo manda a mensage e se ele nгo for manda a mensage ou vice versa... |
public OnPlayerExitVehicle(playerid, vehicleid)
{
SendClientMessage(playerid,COLOR_GREY,"FDP NAO SAI DO CARRO PQP");
return 1;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
if(IsPlayerInArea(playerid,1379.583, -1748.974, 1619.162, -1555.534))//Police Departament
{
SendClientMessage(playerid,COLOR_GREY,"FDP NAO SAI DO CARRO PQP");
}
return 1;
}
stock IsPlayerInPlace(playerid,Float:XMin,Float:YMin,Float:XMax,Float:YMax )
{
new RetValue = 0;
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z );
if( X >= XMin && Y >= YMin && X < XMax && Y < YMax )
{
RetValue = 1;
}
return RetValue;
}
Realmente nгo funcionou comigo.
Entгo, tentei com um cуdigo diferente. Troca o IsPlayerInArea por isto: pawn Code:
|