Korisne komande

Započeo Correlli, Maj 28, 2010, 16:52:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 5 gostiju pregledaju ovu temu.

BDM

*

Citat: Seiz poslato Septembar 30, 2014, 14:16:12 POSLE PODNE
Evo jedna komanda od mene za busenje guma, nisam je testirao neka je neko testira pa ako ne radi neka mi posalje PM.
if(strcmp(cmd, "/busi", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /busi [playerid/PartOfName] [id]");
SendClientMessage(playerid, COLOR_WHITE, "0. Sve gume");
SendClientMessage(playerid, COLOR_WHITE, "1. Zadnja desna");
SendClientMessage(playerid, COLOR_WHITE, "2. Prednja desna");
SendClientMessage(playerid, COLOR_WHITE, "3. Zadnja leva");
SendClientMessage(playerid, COLOR_WHITE, "4. Prednja leva");
return 1;
}
new para1;
para1 = ReturnUser(tmp);
if(IsPlayerConnected(para1))
    {
  if(IsPlayerInAnyVehicle(para1))
  {
if(para1 != INVALID_PLAYER_ID)
        {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /busi [playerid/PartOfName] [id]");
SendClientMessage(playerid, COLOR_WHITE, "0. Sve gume");
SendClientMessage(playerid, COLOR_WHITE, "1. Zadnja desna");
SendClientMessage(playerid, COLOR_WHITE, "2. Prednja desna");
SendClientMessage(playerid, COLOR_WHITE, "3. Zadnja leva");
SendClientMessage(playerid, COLOR_WHITE, "4. Prednja leva");
return 1;
}
new guma;
guma = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: /busi [playerid/PartOfName] [id]");
SendClientMessage(playerid, COLOR_WHITE, "0. Sve gume");
SendClientMessage(playerid, COLOR_WHITE, "1. Zadnja desna");
SendClientMessage(playerid, COLOR_WHITE, "2. Prednja desna");
SendClientMessage(playerid, COLOR_WHITE, "3. Zadnja leva");
SendClientMessage(playerid, COLOR_WHITE, "4. Prednja leva");
return 1;
}
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(para1 == playerid) return SendClientMessage(playerid, COLOR_GREY, " Ne mozete sami sebi da izbusite gumu !");
new panels, doors, lights, tires;
new carid = GetPlayerVehicleID(id);
switch (stat)
{
case 0:
{
GetVehicleDamageStatus(carid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(carid, panels, doors, lights, 15);
}
case 1:
{
GetVehicleDamageStatus(carid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(carid, panels, doors, lights, 1);
}
case 2:
{
GetVehicleDamageStatus(carid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(carid, panels, doors, lights, 2);
}
case 3:
{
GetVehicleDamageStatus(carid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(carid, panels, doors, lights, 4);
}
case 4:
{
GetVehicleDamageStatus(carid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(carid, panels, doors, lights, 8);
}
default:
{
format(string, sizeof(string), "   Pogresan broj gume!", amount);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   Taj igrac nije online!");
}
  }
  else
  {
SendClientMessage(playerid, COLOR_GRAD1, "   Taj igrac nije u vozilu!");
  }
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized!");
}
}
}
}
return 1;
}


format(string, sizeof(string), "   Pogresan broj gume!", amount);

gdje je parametar?

BUMP

Koristite malo i ovu temu.
Poslednja Izmena: Januar 24, 2015, 00:50:21 PRE PODNE od â–… â–† â–ˆ Rudimental â–ˆ â–† â–…

Evo jedna korisna komanda

//=================//
CMD:baci(playerid,params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    new Float:X,Float:Y,Float:Z;
    new GunID = GetPlayerWeapon(playerid);
    new GunAmmo = GetPlayerAmmo(playerid);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerPos(playerid, X, Y, Z);
    RemovePlayerWeapon(playerid, GunID);
    DropGun(playerid, GunID,GunAmmo,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
    format(string, 128, "* %s je bacio oruzje na pod.", GetName(playerid));
ProxDetector(10.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
    return 1;
}

//=================//
CMD:podigni(playerid,params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    for(new i = 0; i < sizeof(DropInfo); i++)
    {
        if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ]))
        {
            if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunInterior])
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                DestroyDynamicObject(DropObject[i]);
                GivePlayerWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]);
                DropInfo[i][DropGunPosX] = 0.0;
                DropInfo[i][DropGunPosY] = 0.0;
                DropInfo[i][DropGunPosZ] = 0.0;
                DropInfo[i][DropGunAmmount][0] = 0;
                DropInfo[i][DropGunAmmount][1] = 0;
                format(string, 128, "* %s uzima u ruku te podize oruzje s poda.", GetName(playerid));
            ProxDetector(10.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
                return 1;
            }
        }
    }
    return 1;
}

Citat: alko321 poslato Januar 31, 2015, 16:56:39 POSLE PODNE
Evo jedna korisna komanda

//=================//
CMD:baci(playerid,params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    new Float:X,Float:Y,Float:Z;
    new GunID = GetPlayerWeapon(playerid);
    new GunAmmo = GetPlayerAmmo(playerid);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerPos(playerid, X, Y, Z);
    RemovePlayerWeapon(playerid, GunID);
    DropGun(playerid, GunID,GunAmmo,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
    format(string, 128, "* %s je bacio oruzje na pod.", GetName(playerid));
ProxDetector(10.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
    return 1;
}

//=================//
CMD:podigni(playerid,params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    for(new i = 0; i < sizeof(DropInfo); i++)
    {
        if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ]))
        {
            if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunInterior])
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                DestroyDynamicObject(DropObject[i]);
                GivePlayerWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]);
                DropInfo[i][DropGunPosX] = 0.0;
                DropInfo[i][DropGunPosY] = 0.0;
                DropInfo[i][DropGunPosZ] = 0.0;
                DropInfo[i][DropGunAmmount][0] = 0;
                DropInfo[i][DropGunAmmount][1] = 0;
                format(string, 128, "* %s uzima u ruku te podize oruzje s poda.", GetName(playerid));
            ProxDetector(10.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
                return 1;
            }
        }
    }
    return 1;
}

šta je ovdje korisno,korisno je to što početnici neće moci da razume ni boje koje si stavio a kamoli enuma dropinfo i to sve trebao si malo to objasnit ...al eto ovo je samo komanda
~ Server Pernambucho Roleplay ~
Forum : ~ http://pernambucho.com/ ~
Facebook :~ https://www.facebook.com/events/331686430351597 ~

Owner : JA :D

Citat: alko321 poslato Januar 31, 2015, 16:56:39 POSLE PODNE
Evo jedna korisna komanda

//=================//
CMD:baci(playerid,params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    new Float:X,Float:Y,Float:Z;
    new GunID = GetPlayerWeapon(playerid);
    new GunAmmo = GetPlayerAmmo(playerid);
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetPlayerPos(playerid, X, Y, Z);
    RemovePlayerWeapon(playerid, GunID);
    DropGun(playerid, GunID,GunAmmo,X,Y,Z,GetPlayerVirtualWorld(playerid),GetPlayerInterior(playerid));
    format(string, 128, "* %s je bacio oruzje na pod.", GetName(playerid));
ProxDetector(10.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
    return 1;
}

//=================//
CMD:podigni(playerid,params[])
{
    new string[128];
    new sendername[MAX_PLAYER_NAME];
    for(new i = 0; i < sizeof(DropInfo); i++)
    {
        if (IsPlayerInRangeOfPoint(playerid, 2.0,DropInfo[i][DropGunPosX],DropInfo[i][DropGunPosY],DropInfo[i][DropGunPosZ]))
        {
            if(GetPlayerVirtualWorld(playerid) == DropInfo[i][DropGunVWorld] && GetPlayerInterior(playerid) == DropInfo[i][DropGunInterior])
            {
                GetPlayerName(playerid, sendername, sizeof(sendername));
                DestroyDynamicObject(DropObject[i]);
                GivePlayerWeapon(playerid,DropInfo[i][DropGunAmmount][0],DropInfo[i][DropGunAmmount][1]);
                DropInfo[i][DropGunPosX] = 0.0;
                DropInfo[i][DropGunPosY] = 0.0;
                DropInfo[i][DropGunPosZ] = 0.0;
                DropInfo[i][DropGunAmmount][0] = 0;
                DropInfo[i][DropGunAmmount][1] = 0;
                format(string, 128, "* %s uzima u ruku te podize oruzje s poda.", GetName(playerid));
            ProxDetector(10.0, playerid, string, LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA,LJUBICASTA);
                return 1;
            }
        }
    }
    return 1;
}


užas. daj molin te pogledaj kako su drugi objavljivali, to zapravo nije ništa

Pise li korisne komande ?? ili pise Objasni sve sto treba ??

Citat: alko321 poslato Januar 31, 2015, 22:30:31 POSLE PODNE
Pise li korisne komande ?? ili pise Objasni sve sto treba ??
haahahha, korisne komande bez ikakve definicije, je svima je korisna.

hhoces da ti ja dam komandu extra je korisna ali neces je nikad prialogodit svom modu
~ Server Pernambucho Roleplay ~
Forum : ~ http://pernambucho.com/ ~
Facebook :~ https://www.facebook.com/events/331686430351597 ~

Owner : JA :D

Citat: arnel avdic poslato Januar 31, 2015, 22:39:31 POSLE PODNE
hhoces da ti ja dam komandu extra je korisna ali neces je nikad prialogodit svom modu


Izvini Arnele nisam te prepoznao aj daj komandu pa ti posaljem SS

Citat: alko321 poslato Februar 01, 2015, 00:20:34 PRE PODNE
Citat: arnel avdic poslato Januar 31, 2015, 22:39:31 POSLE PODNE
hhoces da ti ja dam komandu extra je korisna ali neces je nikad prialogodit svom modu


Izvini Arnele nisam te prepoznao aj daj komandu pa ti posaljem SS
sutra čim ustanem jer sam na laptopu i hoću boga mi ti poslat tako da je očekujem sutra u toku dana
~ Server Pernambucho Roleplay ~
Forum : ~ http://pernambucho.com/ ~
Facebook :~ https://www.facebook.com/events/331686430351597 ~

Owner : JA :D

Bilo mi je dosadno pa evo: /report koji sprema reporte da ih admini mogu citati lagano i odgovarati na jedan po jedan, igrac vidi kada njegov report bude procitan i vidi koji admin je procitao report, moze biti znacajno i kod uvidjaja koji admini rade a koji ne..

Pre svega za ovo su vam potrebni include zcmd i plugin+include sscanf2

Najpre ovo dodate na vrh moda ispod includova

#define MAX_REPORTS     100

enum reportInfo {
Ime[MAX_PLAYER_NAME],
Report[128],
Vreme[40],
ID
} new Reports[MAX_REPORTS][reportInfo];

stock ResetujReport(id) {
format(Reports[id][Ime],MAX_PLAYER_NAME,"%s","Niko");
return 1;
}


Zatim komande

CMD:report(playerid,params[]) {
new text[128];
if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,-1," > Koristi: /report [text]");
for(new i = 0; i < MAX_REPORTS; i++) {
if(Reports[i][ID] == playerid) SendClientMessage(playerid,-1," > Vec si poslao jedan report na koji niko nije odgovorio, sacekaj odgovor!");
return 1;
}
new bool:p; new reportnum;
for(new i = 0; i < MAX_REPORTS; i++) {
    if(!p) {
    if(strcmp(Reports[i][Ime],"Niko",false) == 0) {
        p = true;
        reportnum = i;
}
}
}
if(!p) return SendClientMessage(playerid,-1,"Trenutno postoji 100 neprocitanih reporta, sacekajte dok se rascisti!");
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new timestr[64]; new dan,mesec,god,sat,minut,sek;
getdate(god,mesec,dan); gettime(sat,minut,sek);
format(timestr,sizeof(timestr),"%02d/%02d/%d, %02d:%02d:%02d",dan,mesec,god,sat,minut,sek);
format(Reports[reportnum][Ime],MAX_PLAYER_NAME,"%s",name);
format(Reports[reportnum][Report],128,"%s",text);
format(Reports[reportnum][Vreme],40,"%s",timestr);
Reports[reportnum][ID] = playerid;
SendClientMessage(playerid,-1," > Vas report je poslan, dobicete odgovor u najkracem roku!");
new str[150];
format(str,150, " > Vas report glasi: %s",text);
SendClientMessage(playerid,-1,str);
return 1;
}

CMD:reports(playerid,params[]) {
if(IsPlayerAdmin(playerid)) {
    new str[128]; new c = 0;
for(new i = 0; i < MAX_REPORTS; i++) {
    if(strcmp(Reports[i][Ime],"Niko",false) != 0) {
        format(str,128," > ID reporta: %d, Igrac %s[%d], Kada je poslao report: %s",i,Reports[i][Ime],Reports[i][ID],Reports[i][Vreme]);
        SendClientMessage(playerid,-1,str);
        c++;
    }
}
if(c == 0) return SendClientMessage(playerid,-1, " > Nema neprocitanih reportova!");
}
return 1;
}

CMD:procitajreport(playerid,params[]) {
if(IsPlayerAdmin(playerid)) {
new id;
if(sscanf(params,"i",id)) return SendClientMessage(playerid,-1," > Koristi: /procitajreport [id reporta]");
else if(id < 0 || id > MAX_REPORTS-1) return SendClientMessage(playerid,-1, " > Pogresan ID reporta!");
if(strcmp(Reports[id][Ime],"Niko",false) == 0) return SendClientMessage(playerid,-1," > Nema reporta na ovom IDu!");
new str[150];
format(str,150," > Igrac: %s[%d] | Datum i vreme pisanja reporta: %s",Reports[id][Ime],Reports[id][ID],Reports[id][Vreme]);
SendClientMessage(playerid,-1,str);
format(str,150," > Report: %s",Reports[id][Report]);
SendClientMessage(playerid,-1,str);
new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
format(str,150," > Admin %s je procitao vas report!",name);
SendClientMessage(Reports[id][ID],-1, str);
ResetujReport(id);
}
return 1;
}


Zatim ovo dodate pod OnGameModeInit:

    for(new i = 0; i < MAX_REPORTS; i++) ResetujReport(i);

I na kraju ovo pod OnPlayerDisconnect:

for(new i = 0; i < MAX_REPORTS; i++) {
if(Reports[i][ID] == playerid) ResetujReport(i);
}


pa eto mozda kome i posluzi :)

Citat: dock poslato Februar 16, 2015, 04:26:42 PRE PODNE
Bilo mi je dosadno pa evo: /report koji sprema reporte da ih admini mogu citati lagano i odgovarati na jedan po jedan, igrac vidi kada njegov report bude procitan i vidi koji admin je procitao report, moze biti znacajno i kod uvidjaja koji admini rade a koji ne..

Pre svega za ovo su vam potrebni include zcmd i plugin+include sscanf2

Najpre ovo dodate na vrh moda ispod includova

#define MAX_REPORTS     100

enum reportInfo {
Ime[MAX_PLAYER_NAME],
Report[128],
Vreme[40],
ID
} new Reports[MAX_REPORTS][reportInfo];

stock ResetujReport(id) {
format(Reports[id][Ime],MAX_PLAYER_NAME,"%s","Niko");
return 1;
}


Zatim komande

CMD:report(playerid,params[]) {
new text[128];
if(sscanf(params,"s[128]",text)) return SendClientMessage(playerid,-1," > Koristi: /report [text]");
for(new i = 0; i < MAX_REPORTS; i++) {
if(Reports[i][ID] == playerid) SendClientMessage(playerid,-1," > Vec si poslao jedan report na koji niko nije odgovorio, sacekaj odgovor!");
return 1;
}
new bool:p; new reportnum;
for(new i = 0; i < MAX_REPORTS; i++) {
    if(!p) {
    if(strcmp(Reports[i][Ime],"Niko",false) == 0) {
        p = true;
        reportnum = i;
}
}
}
if(!p) return SendClientMessage(playerid,-1,"Trenutno postoji 100 neprocitanih reporta, sacekajte dok se rascisti!");
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
new timestr[64]; new dan,mesec,god,sat,minut,sek;
getdate(god,mesec,dan); gettime(sat,minut,sek);
format(timestr,sizeof(timestr),"%02d/%02d/%d, %02d:%02d:%02d",dan,mesec,god,sat,minut,sek);
format(Reports[reportnum][Ime],MAX_PLAYER_NAME,"%s",name);
format(Reports[reportnum][Report],128,"%s",text);
format(Reports[reportnum][Vreme],40,"%s",timestr);
Reports[reportnum][ID] = playerid;
SendClientMessage(playerid,-1," > Vas report je poslan, dobicete odgovor u najkracem roku!");
new str[150];
format(str,150, " > Vas report glasi: %s",text);
SendClientMessage(playerid,-1,str);
return 1;
}

CMD:reports(playerid,params[]) {
if(IsPlayerAdmin(playerid)) {
    new str[128]; new c = 0;
for(new i = 0; i < MAX_REPORTS; i++) {
    if(strcmp(Reports[i][Ime],"Niko",false) != 0) {
        format(str,128," > ID reporta: %d, Igrac %s[%d], Kada je poslao report: %s",i,Reports[i][Ime],Reports[i][ID],Reports[i][Vreme]);
        SendClientMessage(playerid,-1,str);
        c++;
    }
}
if(c == 0) return SendClientMessage(playerid,-1, " > Nema neprocitanih reportova!");
}
return 1;
}

CMD:procitajreport(playerid,params[]) {
if(IsPlayerAdmin(playerid)) {
new id;
if(sscanf(params,"i",id)) return SendClientMessage(playerid,-1," > Koristi: /procitajreport [id reporta]");
else if(id < 0 || id > MAX_REPORTS-1) return SendClientMessage(playerid,-1, " > Pogresan ID reporta!");
if(strcmp(Reports[id][Ime],"Niko",false) == 0) return SendClientMessage(playerid,-1," > Nema reporta na ovom IDu!");
new str[150];
format(str,150," > Igrac: %s[%d] | Datum i vreme pisanja reporta: %s",Reports[id][Ime],Reports[id][ID],Reports[id][Vreme]);
SendClientMessage(playerid,-1,str);
format(str,150," > Report: %s",Reports[id][Report]);
SendClientMessage(playerid,-1,str);
new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));
format(str,150," > Admin %s je procitao vas report!",name);
SendClientMessage(Reports[id][ID],-1, str);
ResetujReport(id);
}
return 1;
}


Zatim ovo dodate pod OnGameModeInit:

    for(new i = 0; i < MAX_REPORTS; i++) ResetujReport(i);

I na kraju ovo pod OnPlayerDisconnect:

for(new i = 0; i < MAX_REPORTS; i++) {
if(Reports[i][ID] == playerid) ResetujReport(i);
}


pa eto mozda kome i posluzi :)

lijepa ideja i korisna komanda. bravo.

Sa ovom komandom isključujemo glavni chat !

#include <a_samp>
#include <zcmd>


#define DIALOG_CHAT 1
new UgasenChat;



CMD:chat(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Niste rcon admin !");
ShowPlayerDialog(playerid, DIALOG_CHAT, DIALOG_STYLE_LIST, "Ugasi ili upali chat","Upali chat\nUgasi chat" , "Izaberi", "Izadji");
return 1;
}


public OnPlayerText(playerid, text[])
{
    if(UgasenChat == 1)
{
SendClientMessage(playerid,-1,"Chat je ugašen !");
return 0;
}
return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_CHAT)
{
       if(response)
   {
            switch(listitem)
{
            case 0:
            {
                new string[64];
                if(UgasenChat == 0) return SendClientMessage(playerid,-1,"Glavni chat nije ugaÅ¡en !");
                format(string,sizeof(string),"Admin %s je upalio chat !!",GetName(playerid));
                SendClientMessageToAll(-1,string);
                UgasenChat = 0;
}
case 1:
            {
                new string[64];
                if(UgasenChat == 1) return SendClientMessage(playerid,-1,"Glavni chat je već ugaÅ¡en !");
                format(string,sizeof(string),"Admin %s je ugasio chat !",GetName(playerid));
                SendClientMessageToAll(-1,string);
                UgasenChat = 1;
}
}
}
    }
    return 1;
}

stock GetName(playerid)
{
new JName[MAX_PLAYER_NAME];
GetPlayerName(playerid,JName,MAX_PLAYER_NAME);
return JName;
}
~ Server Pernambucho Roleplay ~
Forum : ~ http://pernambucho.com/ ~
Facebook :~ https://www.facebook.com/events/331686430351597 ~

Owner : JA :D

CMD:flip(playerid,params[])
{
    new Veh, Float:X, Float:Y, Float:Z, Float:A;
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,-1,"Nisi u vozilu !");
GetPlayerPos(playerid, X, Y, Z);
Veh = GetPlayerVehicleID(playerid);
GetVehicleZAngle(Veh, A);
SetVehiclePos(Veh, X, Y, Z);
SetVehicleZAngle(Veh, A);
SetVehicleHealth(Veh,1000.0);
GameTextForPlayer(playerid,"~g~Uspjesno",5000,1);
return 1;
}
   


eto jedna komanda s kojom cete prevrnuti vozilo odnosno vratiti na pocetak
~ Server Pernambucho Roleplay ~
Forum : ~ http://pernambucho.com/ ~
Facebook :~ https://www.facebook.com/events/331686430351597 ~

Owner : JA :D

Citat: arnel avdic poslato April 20, 2015, 18:30:08 POSLE PODNE
Sa ovom komandom isključujemo glavni chat !

#include <a_samp>
#include <zcmd>


#define DIALOG_CHAT 1
new UgasenChat;



CMD:chat(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1,"Niste rcon admin !");
ShowPlayerDialog(playerid, DIALOG_CHAT, DIALOG_STYLE_LIST, "Ugasi ili upali chat","Upali chat\nUgasi chat" , "Izaberi", "Izadji");
return 1;
}


public OnPlayerText(playerid, text[])
{
    if(UgasenChat == 1)
{
SendClientMessage(playerid,-1,"Chat je ugašen !");
return 0;
}
return 1;
}


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_CHAT)
{
       if(response)
   {
            switch(listitem)
{
            case 0:
            {
                new string[64];
                if(UgasenChat == 0) return SendClientMessage(playerid,-1,"Glavni chat nije ugaÅ¡en !");
                format(string,sizeof(string),"Admin %s je upalio chat !!",GetName(playerid));
                SendClientMessageToAll(-1,string);
                UgasenChat = 0;
}
case 1:
            {
                new string[64];
                if(UgasenChat == 1) return SendClientMessage(playerid,-1,"Glavni chat je već ugaÅ¡en !");
                format(string,sizeof(string),"Admin %s je ugasio chat !",GetName(playerid));
                SendClientMessageToAll(-1,string);
                UgasenChat = 1;
}
}
}
    }
    return 1;
}

stock GetName(playerid)
{
new JName[MAX_PLAYER_NAME];
GetPlayerName(playerid,JName,MAX_PLAYER_NAME);
return JName;
}

Lijepo i korisno :D