Ajutor la comanda /laptop.
#1

Salut,acum cateva zile am incercat sa fac un system de laptop,am copiat ceva dintr-un server dini, pe un server MySQL si acum nu stiu ce sa-i fac..
Las comanda aici, poate ma ajuta cineva , multumesc!
Quote:

CMD:laptop(playerid, params[])
{
if(PlayerInfo[playerid][pLaptop] == 0) return SCM(playerid, COLOR_GREY, "Nu ai un laptop!");
new cmd[256],tmp[256];
cmd = strtok(cmdtext, idx);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_SERVER, "USAGE:{FFFFFF} /laptop [on/off]");
if(strcmp("on", tmp, true, strlen(tmp)) == 0) {
if(PlayerInfo[playerid][pLaptopStatus] == 0) return SCM(playerid, COLOR_GREY, "Laptop-ul tau este deja pornit.");
SCM(playerid, COLOR_GOLD, "Laptop-ul tau a fost {32B019}pornit{F2BA38} cu succes. Foloseste /mail pentru a trimite un email!");
PlayerInfo[playerid][pLaptopStatus] = 0;
}
else if(strcmp("off", tmp, true, strlen(tmp)) == 0) {
if(PlayerInfo[playerid][pLaptopStatus] == 1) return SCM(playerid, COLOR_GREY, "Laptop-ul tau este deja inchis.");
SCM(playerid, COLOR_GOLD, "Laptop-ul tau a fost {FF0000}oprit{F2BA38} cu succes.");
PlayerInfo[playerid][pLaptopStatus] = 1;
}
return 1;
}

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: 2 Guest(s)