Jump to content

[FS]DayNight


Guest [DSK]Robert

Recommended Posts

Guest [DSK]Robert

[FS]DayNight:

Acest FS nu stiu chiar daca ar fi folositor dar schimba vreme (zi / noapte)  :)

E creat de mine

Comenzi:

  /zi

  /noapte

Poze: Nu are sens  8)

Download Link ===================>  http://pawno.sa-mp.ro/pastebin.php?show=24

PS: E primul meu FS postat  ;D

Link to comment
Share on other sites

pentru asta am 2 comenzi nu ami trebe FS!

if (strcmp("/zi", cmdtext, true, 6) == 0)
    {
    SetPlayerTime(playerid,13,0);
    return 1;
    }
if (strcmp("/noapte", cmdtext, true, 6) == 0)
    {
    SetPlayerTime(playerid,0,0);
    return 1;
    }

2 comenzi in GM /zi /noapte nu trebe FS!

Nu inteleg ce FS e asta!

???

Link to comment
Share on other sites

Ruben" post="50556" timestamp="1295197614"]

pentru asta am 2 comenzi nu ami trebe FS!

if (strcmp("/zi", cmdtext, true, 6) == 0)
    {
    SetPlayerTime(playerid,13,0);
    return 1;
    }
if (strcmp("/noapte", cmdtext, true, 6) == 0)
    {
    SetPlayerTime(playerid,0,0);
    return 1;
    }

2 comenzi in GM /zi /noapte nu trebe FS!

Nu inteleg ce FS e asta!

???

+1

Link to comment
Share on other sites

FS refacut mult mai simplu:

//Filterscript simplu creat de [DSK]Robert
//Zi si Noapte
#include <a_samp>

public OnPlayerCommandText(playerid,cmdtext[])
{
    if(strcmp("/zi",cmdtext,true) == 0) return SetPlayerTime(playerid,15,0), SendClientMessage(playerid,0x33AA33AA,"A venit ziua ");
    if(strcmp("/noapte",cmdtext,true) == 0) return SetPlayerTime(playerid,0,0), SendClientMessage(playerid,0x33AA33AA,"E noapte!");
    return 0;
}

Nici un incepator n-ar trebui sa faca doar atata, e doar o functie facuta de 2 ori ...

PS: Puteai scrie si /zi dsakdsaasd si tot mergea ;))

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.