אז שלום היום אני ילמד אותכם איך לעשות בפקודה דברים אחרים ואיך לשנות אותה.
טוב נתחיל:קודם כול אתם צריכים לדעת איזה פקודה אתם רוצים לשנות ומאיפו היא באה כמו:אדמין מוד,מערכת מוכנה
אחרי שגיליתם מאיפו היא אתם הולכים אליה ופותחים אותה עם תוכנת הפאונו (למי שלא יודע נמצאת בתייקיה פאונו)
אחר כך אתם מחפשים את הפבליק קוד PHP:
PHP Code:
[LEFT]public OnPlayerCommandText [/LEFT]
ושאתם מוצאים פקודה נגיד כמו זו או שונה זה של תפריט כמו help
PHP Code:
[LEFT]if(strcmp(cmd, "/tips", true) == 0) {
SendPlayerFormattedText(playerid,"Spawning with just a desert eagle might sound lame, however the idea of this",0);
SendPlayerFormattedText(playerid,"gamemode is to get some cash, get better guns, then go after whoever has the",0);
SendPlayerFormattedText(playerid,"most ****** Once you've got the most cash, the idea is to stay alive(with the",0);
SendPlayerFormattedText(playerid,"cash intact)until the game ends, simple right ?", 0);
return 1;
} [/LEFT]
אתם יכולים לשנות לככה:
PHP Code:
[LEFT]if(strcmp(cmd, "/tip", true) == 0) {
SendPlayerFormattedText(playerid,"Spawning with just a desert eagle might sound lame, however the idea of this",0);
SendPlayerFormattedText(playerid,"gamemode is to get some cash, get better guns, then go after whoever has the",0);
SendPlayerFormattedText(playerid,"most ****** Once you've got the most cash, the idea is to stay alive(with the",0);
SendPlayerFormattedText(playerid,"cash intact)until the game ends, simple right ?", 0);
return 1;
} [/LEFT]
וגם בדרך כלל אתם רוצים לשנות את ההודעות שהוא שלח שאתם מגיעים למקום היעד חפשו בפקודה כמו SendClientMessage
כמו:
PHP Code:
[LEFT]SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givecash [playerid] [amount]"); [/LEFT]
אז אתם יכולים לשנות אותו ל:
PHP Code:
[LEFT]SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pay [ID] [Amount]"); [/LEFT]
ואם אני מתרגם אותו אז זה יוצא ככה:
PHP Code:
[LEFT]SendClientMessage(playerid, COLOR_WHITE, "לשימוש: /pay ואז אידי ואז סכום"); [/LEFT]
וככה אתם גם יכולים לתרגם דברים מאנגלית לעברית כמו ש רוב הפעמים אומרים לכם.