How do i do this?
#5

PHP код:
stock SaveEntrance(Float:xFloat:yFloat:zFloat:aFloat:ixFloat:iyFloat:izFloat:iaintvw)
{
    new 
query[512];
    
format(querysizeof(query), "INSERT INTO `entrances` (`ex`, `ey`, `ez`, `ea`, `ix`, `iy`, `iz`, `ia`, `int`, `vw`) VALUES(%f, %f, %f, %f, %f, %f, %f, %f, %d, %d)"xyzaixiyiziaintvw);
    
mysql_query(query);

    
tTotalEntrances++;

    
Entrances[tTotalEntrances][EntranceID] = mysql_insert_id();
    
Entrances[tTotalEntrances][eX] = x;
    
Entrances[tTotalEntrances][eY] = y;
    
Entrances[tTotalEntrances][eZ] = z;
    
Entrances[tTotalEntrances][eA] = a;
    
Entrances[tTotalEntrances][iX] = ix;
    
Entrances[tTotalEntrances][iY] = iy;
    
Entrances[tTotalEntrances][iZ] = iz;
    
Entrances[tTotalEntrances][iA] = ia;
    
Entrances[tTotalEntrances][EntranceInt] = int;
    
Entrances[tTotalEntrances][EntranceWorld] = vw;

    
Create3DTextLabel("Entrance"Your color herexyz+0.520.0vw);
    
CreatePickup(12391xyz0);
    return 
1;

That would suffice and you do the same with the interior entrances

but there is also
CreateDynamic3DTextLabel() from streamer if you want it, you can set both vw and int for both interior and exterior entrances. It depends on your

for the down part the dialog thing
PHP код:
if(strcmp(cmd"editentrancename"true) == 1)
{
    
ShowPlayerDialog(playeridDIALOG_EDITDNAMEDIALOG_STYLE_INPUT"Type specified door name""NOTE: Must be valid length for name.""Change""Cancel");
    return 
1;
}

// on your dialog response add this
if(dialogid == DIALOG_EDITNAME)
{
    if(
strval(inputtext) < || strval(inputtext) > 24) return ShowPlayerDialog(playeridDIALOG_EDITDNAMEDIALOG_STYLE_INPUT"Type specified door name""NOTE: Must be valid length for name.""Change""Cancel");
    new 
name[25];
    
name strval(inputtext);
    
//you'll know the rest

Reply


Messages In This Thread
How do i do this? - by Stones - 17.02.2017, 21:18
Re: How do i do this? - by Stones - 18.02.2017, 01:48
Re: How do i do this? - by JesterlJoker - 18.02.2017, 07:00
Re: How do i do this? - by Stones - 18.02.2017, 07:42
Re: How do i do this? - by JesterlJoker - 18.02.2017, 08:11

Forum Jump:


Users browsing this thread: 1 Guest(s)