Ajutor la comanda /laptop.
#6

PHP Code:
CMD:laptop(playeridparams[])
{
    if(
PlayerInfo[playerid][pLaptop] == 0) return SCM(playeridCOLOR_GREY"Nu ai un laptop!");
    new 
cmd[256],tmp[256];
    
cmd strtok(cmdtextidx);
    
tmp strtok(cmdtextidx);
    if(!
strlen(tmp)) return SendClientMessage(playeridCOLOR_SERVER"USAGE:{FFFFFF} /laptop [on/off]");
    if(
strcmp("on"tmptruestrlen(tmp)) == 0
    {
        
PlayerInfo[playerid][pLaptopStatus] = 0;
    }
    else if(
strcmp("off"tmptruestrlen(tmp)) == 0
    {
        
PlayerInfo[playerid][pLaptopStatus] = 1;
    }
    return 
1;

Asta ar fi , din cate am inteles din ce ai spus
Reply


Messages In This Thread
Ajutor la comanda /laptop. - by HzIoNuTZ - 07.04.2017, 07:58
Re: Ajutor la comanda /laptop. - by wanted2013 - 07.04.2017, 20:10
Re: Ajutor la comanda /laptop. - by Banditul18 - 07.04.2017, 20:44
Re: Ajutor la comanda /laptop. - by HzIoNuTZ - 08.04.2017, 09:26
Re: Ajutor la comanda /laptop. - by HzIoNuTZ - 08.04.2017, 09:31
Re: Ajutor la comanda /laptop. - by Banditul18 - 08.04.2017, 12:52
Re: Ajutor la comanda /laptop. - by HzIoNuTZ - 08.04.2017, 17:41

Forum Jump:


Users browsing this thread: 1 Guest(s)