Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Ajutor la comanda /laptop.

$
0
0
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;
}

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>