this is not working =/
#1

this is not working =/

PHP код:
new TrainingObj[MAX_PLAYERS];
#define DIALOG_ID_TRAINING  (20)
YCMD:train(playeridparams[], help)
{
    
#pragma unused params, help
     
TrainingObj[playerid] = CreatePlayerObject(playerid190541332.2073972194.80493111.0234370.00.00.0200.0);
    
SetPlayerPos(playerid1332.2073972194.80493111.023437);
    
SetPlayerVirtualWorld(playeridplayerid+1);
       
GivePlayerWeapon(playerid34500);
    return 
0;
}
public 
OnPlayerDisconnect(playeridreason)
{
    if(
IsValidPlayerObject(playeridTrainingObj[playerid]))
        
DestroyPlayerObject(playeridTrainingObj[playerid]);
    return 
1;
}
public 
OnPlayerWeaponShot(playeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ)
{
    if(
weaponid == 34 && hittype == BULLET_HIT_TYPE_OBJECT && hitid == TrainingObj[playerid])
    {
        
DestroyPlayerObject(playeridTrainingObj[playerid]);
        
TrainingObj[playerid] = CreatePlayerObject(playerid190541332.2073972194.80493111.0234370.00.00.0200.0);
        
SendClientMessage(playerid, -1"הושמד ויצר חדש");
    }
    return 
1;

Reply


Messages In This Thread
this is not working =/ - by _Application_ - 07.01.2015, 17:10
Re: this is not working =/ - by HY - 07.01.2015, 17:14
Re: this is not working =/ - by Schneider - 07.01.2015, 17:53
Re: this is not working =/ - by CrazyChoco - 07.01.2015, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)