08.05.2012, 17:15
Boa Tarde galera, Estou com um problema no portгo quando eu dou o CMD " /pm1 " o portгo vira ja tentei resolver nгo deu, Estou pedindo a vcs que me ajudem.
pawn Код:
//=====================================================
forward tempofecharpm1(playerid);
forward tempofecharpm2(playerid);
//=====================================================
new pm1;
new pm2;
//=====================================================
//========================| OnGameModeInit |==============
pm1 = CreateObject(980,1997.19995117,-1442.09997559,15.30000019,0.00000000,0.00000000,90.00000000);
pm2 = CreateObject(980,2005.80004883,-1450.80004883,15.30000019,0.00000000,0.00000000,0.00000000);
//========================| PT Medicos|==================
if (strcmp(cmdtext,"/pm1", true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetTimerEx("tempofecharpm1",5000, false, "i", playerid); //3000 = 3 Segundo
MoveObject(pm1, 1997.19995117,-1442.09997559,15.10000019,3);
SendClientMessage(playerid,COLOR_EXERCITO, "Portгo aberto! Fecharб em 5 Segundos");
return 1;
}
}
if (strcmp(cmdtext,"/pm2", true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
SetTimerEx("tempofecharpm2",5000, false, "i", playerid); //3000 = 3 Segundo
MoveObject(pm2, 2005.80004883,-1450.80004883,15.30000019,3);
SendClientMessage(playerid,COLOR_EXERCITO, "Portгo aberto! Fecharб em 5 Segundos");
return 1;
}
}
//=======================================================================//
public tempofecharpm1(playerid)
{
MoveObject(pm1, 1997.19995117,-1442.09997559,15.30000019,3);
return 1;
}
public tempofecharpm2(playerid)
{
MoveObject(pm2, 2005.80004883,-1450.80004883,15.30000019,3);
return 1;
}
//=======================================================================//
// Explicando: O Portгo PM1 ele vira, Й PM2 Ele nгo fais nada fica parado!