Delete ATM
#3

Quote:
Originally Posted by AzaMx
Посмотреть сообщение
PHP код:
COMMAND:deleteatm(playeridparams[])
{
    new 
atmid;
    if(
PlayerInfo[playerid][pAdmin] >= 7) return SendClientMessageplayeridCOLOR_GREY"You are not authorized to use this command!" );
    if( 
sscanf params"d"atmid)) return SendClientMessageplayeridCOLOR_GREY"/deleteatm [atm id]" );
    new 
string[64];
    
format(string,sizeof(string),"ARWIN14ATM/ATM_%d.ini",atmid);
    if(!
dini_Exists(string)) return SendClientMessageplayeridCOLOR_GREY"There's no ATM with this ID!" );
    
dini_Remove(string);
    
DestroyDynamicObject(ATMInfo[NewATMID][ATMObjectID]);
    
DestroyDynamic3DTextLabel(ATMInfo[NewATMID][ATMText]);
    return 
1;

something like that, just change it to your code.
Okay,, i'll try it thanks
Reply


Messages In This Thread
Delete ATM - by AlfaSufaIndo - 11.09.2018, 10:51
Re: Delete ATM - by AzaMx - 11.09.2018, 11:16
Re: Delete ATM - by AlfaSufaIndo - 11.09.2018, 11:45
Re: Delete ATM - by AlfaSufaIndo - 11.09.2018, 11:50

Forum Jump:


Users browsing this thread: 1 Guest(s)