15.05.2011, 00:54
tenta
pawn Код:
if(strcmp(cmdtext, "/abrirhospital", true)) // By Ellis
{
if(PlayerInfo[playerid][pLeader] == 4 || PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pMember] == 3)
{
if (PlayerToPoint(playerid, 15,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 1;
}