[AJUDA]Canselas abrem mas nao feixam em 6 segundos
#3

PHP код:
new canselafechada;
new 
canselaaberta;
forward tempocansela(playerid);
public 
OnGameModeInit()
{
    
canselafechada CreateDynamicObject(968,1216.78515625,306.50247192,19.94689178,0.00000000,90.00000000,245.25000000);
    return 
1;
}
public 
OnGameModeExit()
{
    
DestroyDynamicObject(canselafechada);
    
DestroyDynamicObject(canselaaberta);
    return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(!
strcmp(cmdtext"/comprarbilhete"true)) // By Ellis
    
{
        if (
IsPlayerInRangeOfPoint(playerid15.01212.7277303.929819.5469))
        {
            
DestroyDynamicObjectcanselafechada );
            
canselaaberta CreateDynamicObject(968,1216.55664062,305.94561768,19.94689178,0.00000000,9.00000000,245.24780273);    
            
GivePlayerMoney(playerid, -500);
            
SetTimer("tempocansela"60000);
            
SendClientMessage(playeridCOLOR_GREEN,"{FFFFFF}Entras-te no parque de estacionamento do {008000}LaMovida {FFFFFF}e pagas-te {BF0000}500Ђ{FFFFFF}.");
        }
        return 
1;
    }
    if(!
strcmp(cmdtext"/usarbilhete"true)) // By Ellis
    
{
        if (
IsPlayerInRangeOfPoint(playerid15.01218.0685301.755319.6039))
            {
            
DestroyDynamicObjectcanselafechada );
            
canselaaberta CreateDynamicObject(968,1216.55664062,305.94561768,19.94689178,0.00000000,9.00000000,245.24780273);
            
SetTimer("tempocansela"60000);
            
SendClientMessage(playeridCOLOR_GREEN,"{FFFFFF}Saiste do parque de estacionamento do {008000}LaMovida{FFFFFF}.");
        }
        return 
1;
    }
    return 
0;
}
public 
tempocansela()
{
      
DestroyObjectcanselaaberta );
      
canselafechada CreateDynamicObject(968,1216.78515625,306.50247192,19.94689178,0.00000000,90.00000000,245.25000000);
      return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)