Korisne skripte i kodovi

Započeo matejdz, Maj 05, 2009, 12:15:21 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.


imas lijep i fin tut na balkan-samp.com forumu kako da postavis ikone SetMapIcon :)

a za trcanje tnx napravijo sam raja ste ljudi hvala
Poslednja Izmena: Septembar 04, 2009, 16:49:24 POSLE PODNE od hamo

e izvini te sto pravim DP ali imam jos jedno pitanjce da li znate gdje da nadem u larp modu sa koliko mi se raÄ'a civil para  

nema pa nema
Poslednja Izmena: Septembar 04, 2009, 22:06:24 POSLE PODNE od hamo

Trawis

kao prvo stavljaj u
KOD ###
a kao drugo mislim da to već ima ;)

Citat: [EF]Trawis poslato Septembar 04, 2009, 21:22:46 POSLE PODNE
kao prvo stavljaj u
KOD ###
a kao drugo mislim da to već ima ;)

za kod imas pravo a i to sto zoves da to vec ima ali ipak mozda se je potrudio ne se zna





Kopiraj ovo u potpis ako mrzis cheatere!


Scripting status:

PittBull Stunt: 5%

My works:

[MAP]
LS Beach
LS Areo Stunt
Baza za dm serveru NEW!

[FS]
not!

[GM]
not!

KLIKNI TU!

matejdz

Do sad sam ovima koji nisu koristili KOD ###

stavlj'o KOD ###

od sad tima koji to ne budu stavljali i koristili samo OBRIÅ EM post i AMEN

PITANJE

if(strcmp(cmd, "/pitanje", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
       GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /pitanje [text]");
return 1;
}
format(string, sizeof(string), "Pitanje od igraca %s: %s", sendername, (result));
ABroadCast(COLOR_ASKQ,string,1);
SendClientMessage(playerid, COLOR_ASKQ, "Vase pitanje je poslano adminima.");
   }
   return 1;
}

// HANDSUP
if(strcmp(cmd, "/handsup", true) == 0) {
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
   SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
    return 1;
}
}

   
Poslednja Izmena: Septembar 05, 2009, 20:24:39 POSLE PODNE od Lonka

Ajde, Klikcite, Jos je u jajetu xD

GETIP

if(strcmp(cmd, "/getip", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 2)
{
tmp = strtok(cmdtext,idx);
new playersip[256];
if(!strlen(tmp))
{
  SendClientMessage(playerid,COLOR_GRAD1,"Koristenje: /getip [Igracev ID]");
        return 1;
}
giveplayerid = ReturnUser(tmp);
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerIp( giveplayerid,playersip,sizeof(playersip));
format(string, sizeof(string), "Igrac: %s IP: %s",giveplayer,playersip);
SendClientMessage(playerid,COLOR_GRAD2,string);
}
return 1;
}

Ajde, Klikcite, Jos je u jajetu xD

GIVEMATS

if(strcmp(cmd, "/givemats", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristenje: /givemats [Igracev ID/Dio Imena] [kolicina]");
return 1;
}
//giveplayerid = strval(tmp);
        giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristenje: /givemats [Igracev ID/Dio Imena] [kolicina]");
return 1;
}
new playa;
GetPlayerName(playa, sendername, sizeof(sendername));
playa = ReturnUser(tmp);
moneys = strval(tmp);
    PlayerInfo[giveplayerid][pMats] = moneys;
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "Admin Upozorenje: Admin %s je dao Igracu %s %d materijala.", sendername,giveplayer,moneys);
ABroadCast(COLOR_YELLOW,string,1);
}
}
return 1;
}

Ajde, Klikcite, Jos je u jajetu xD

CRASH

    if(strcmp(cmd, "/crash", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
    SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /crash [Igracev ID/Dio Imena]");
    return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
    if(IsPlayerConnected(giveplayerid))
    {
        if(giveplayerid != INVALID_PLAYER_ID)
        {
        new Float:X, Float:Y, Float:Z;
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        GetPlayerPos(giveplayerid,X,Y,Z);
        new objectcrash = CreatePlayerObject(giveplayerid,11111111,X,Y,Z,0,0,0);
        DestroyObject(objectcrash);

format(string, sizeof(string), "Crashali ste igru osobi \"%s's\", giveplayer);
  SendClientMessage(playerid,COLOR_DBLUE, string);
return 1;
}
}
}
else
{
    format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}

Ajde, Klikcite, Jos je u jajetu xD

GIVEDRUGS

if(strcmp(cmd, "/givedrugs", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] >= 4)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristenje: /givedrugs [Igracev ID/Dio Imena] [kolicina]");
return 1;
}
//giveplayerid = strval(tmp);
        giveplayerid = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Koristenje: /givedrugs [Igracev ID/Dio Imena] [kolicina]");
return 1;
}
new playa;
GetPlayerName(playa, sendername, sizeof(sendername));
playa = ReturnUser(tmp);
moneys = strval(tmp);
    PlayerInfo[giveplayerid][pDrugs] = moneys;
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, 256, "Admin Upozorenje: Admin %s je dao osobi %s %d droge.", sendername,giveplayer,moneys);
ABroadCast(COLOR_YELLOW,string,1);
}
}
return 1;
}

Ajde, Klikcite, Jos je u jajetu xD

VEH SLAP

if(strcmp(cmd, "/vehslap", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /vehslap [Igracev ID/Dio Imena]");
return 1;
}
new playa;
new Float:shealth;
giveplayerid = ReturnUser(tmp);
new Float:slx, Float:sly, Float:slz;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >=3)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerHealth(playa, shealth);
SetPlayerHealth(playa, shealth-0);
GetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz);
SetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz+550);
PlayerPlaySound(playa, 1130, slx, sly, slz+5);
printf("AdmCmd: %s vehicle slapped %s",sendername,  giveplayer);
format(string, sizeof(string), "Admin Upozorenje: Igrac %s je vehicle slaped od admina %s",giveplayer ,sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** Niste admin.");
}
}
return 1;
}

Ajde, Klikcite, Jos je u jajetu xD

SUPERVEHSLAP

if(strcmp(cmd, "/supervehslap", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /supervehslap [Igracev ID/Dio Imena]");
return 1;
}
new playa;
new Float:shealth;
giveplayerid = ReturnUser(tmp);
new Float:slx, Float:sly, Float:slz;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >=4)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerHealth(playa, shealth);
SetPlayerHealth(playa, shealth-0);
GetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz);
SetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz+1000);
PlayerPlaySound(playa, 1130, slx, sly, slz+5);
printf("AdmCmd: %s vehicle slapped %s",sendername,  giveplayer);
format(string, sizeof(string), "Admin Upozorenje: Igrac %s je vehicle slaped od admina %s",giveplayer ,sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** Niste admin.");
}
}
return 1;
}

Ajde, Klikcite, Jos je u jajetu xD

MrBaff

Citat: Lonka poslato Septembar 05, 2009, 20:34:03 POSLE PODNE
SUPERVEHSLAP

if(strcmp(cmd, "/supervehslap", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /supervehslap [Igracev ID/Dio Imena]");
return 1;
}
new playa;
new Float:shealth;
giveplayerid = ReturnUser(tmp);
new Float:slx, Float:sly, Float:slz;
playa = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >=4)
{
    if(IsPlayerConnected(playa))
    {
        if(playa != INVALID_PLAYER_ID)
        {
        GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerHealth(playa, shealth);
SetPlayerHealth(playa, shealth-0);
GetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz);
SetVehiclePos(GetPlayerVehicleID(giveplayerid), slx, sly, slz+1000);
PlayerPlaySound(playa, 1130, slx, sly, slz+5);
printf("AdmCmd: %s vehicle slapped %s",sendername,  giveplayer);
format(string, sizeof(string), "Admin Upozorenje: Igrac %s je vehicle slaped od admina %s",giveplayer ,sendername);
ABroadCast(COLOR_LIGHTRED,string,1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "** Niste admin.");
}
}
return 1;
}


najbolje je da zalijepis link od LARP moda pa nek uzima ko sta god hoce :S

Citat: Lonka poslato Septembar 05, 2009, 20:29:16 POSLE PODNE
CRASH

    if(strcmp(cmd, "/crash", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
    SendClientMessage(playerid, COLOR_GRAD2, "Koristenje: /crash [Igracev ID/Dio Imena]");
    return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
    if(IsPlayerConnected(giveplayerid))
    {
        if(giveplayerid != INVALID_PLAYER_ID)
        {
        new Float:X, Float:Y, Float:Z;
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        GetPlayerPos(giveplayerid,X,Y,Z);
        new objectcrash = CreatePlayerObject(giveplayerid,11111111,X,Y,Z,0,0,0);
        DestroyObject(objectcrash);

format(string, sizeof(string), "Crashali ste igru osobi \"%s's\", giveplayer);
  SendClientMessage(playerid,COLOR_DBLUE, string);
return 1;
}
}
}
else
{
    format(string, sizeof(string), "   %d nije aktivan igrac.", giveplayerid);
    SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}


E ovo mi je zakon...za sto bi to sluzilo xD