20.02.2011, 04:24
pawn Код:
//PORTAO
new AAbrir1;
new AAbrir2;
pawn Код:
AAbrir1 = CreateDynamicObject(971,431.29003906,2507.16992188,18.80429268,0.00000000,0.00000000,90.00000000); //object(subwaygate) (1) portao 1
AAbrir2 = CreateDynamicObject(971,374.86230469,2503.56152344,19.05429268,0.00000000,0.00000000,90.00000000); //object(subwaygate) (2) portao 2
pawn Код:
if(strcmp(cmdtext,"/aabrir1",true)==0)//portao aberto
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Vocк nгo й Administrador!");
MoveObject(AAbrir1, 431.29003906,2507.16992188,24.55429268, 12);
return 1;
}
if(strcmp(cmdtext,"/aafechar1",true)==0)//portao fechado
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Vocк nгo й Administrador!");
MoveObject(AAbrir1, 431.29003906,2507.16992188,18.80429268, 12);
return 1;
}
if(strcmp(cmdtext,"/aabrir2",true)==0)//portao aberto
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Vocк nгo й Administrador!");
MoveObject(AAbrir2, 374.86230469,2503.56152344,24.05429268, 12);
return 1;
}
if(strcmp(cmdtext,"/aafechar2",true)==0)//portao fechado
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"Vocк nгo й Administrador!");
MoveObject(AAbrir2, 374.86230469,2503.56152344,19.05429268, 12);
return 1;
}