Deci m-am gandit sa fac aceasta comanda pentru ca multi playeri o vor pe gm-ul lor si nu stiu cum sa faca... Pasul 1-Intri in gamemod. Pasul 2-Ctrl+F si cauti "/sell" Pasul 3-Mai jos de /sell pui: if(strcmp(cmd, "/takeguns", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == NR Factiune || PlayerInfo[playerid][pLeader] == NR Factiune )
{
if(PlayerToPoint(5.0, playerid,coordonatele de unde vrei sa cumperi armele.Cand dai in joc /save.))
{
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "You buy weapons!");
GivePlayerWeapon(playerid,24,500);//aici pui ce arma vrei tu
GivePlayerWeapon(playerid,30,500);
GivePlayerMoney(playerid,-2000);//aici cat vrei sa coste armele
return 1;
}
}
}
return 1;
} Sper sa va ajute acest tutorial!