15.05.2011, 01:06
pawn Код:
if(!strcmp(cmdtext, "/abrirhospital", true)) // By Ellis
{
if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 1544.700317,-1630.735717,13.096980))
{
DestroyObject( hospitalgate );
hospitalgate1 = CreateObject(968,2276.48144531,-51.65429688,27.59509277,0.00000000,90.00000000,0.00000000);
SetTimer("GateClose5", 6000, 0);
SendClientMessage(playerid, COLOR_BLUE,"O portгo й aberto e serб encerrado em 6 segundos.");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s pega no seu remoto e abre o portгo.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
return true;
}
esse cуdigo o lider/membro da org 1 2 3 poderб usar.
Vlw trans...