-
Posts
1678 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Calendar
Store
Downloads
Everything posted by D J C
-
Nu mi-a placut.
-
Very bine
-
SF Police Department - 💬 Discuții / Discussions 💬
D J C replied to Kelton's topic in SF Police Department
I, Keep crying that why server keep desync on me, Well I was going after suspect and i got another desync... I'm thinking about suicide. -
Imi place, un like de la mn.
-
Verdant Family - Invoiri Activitati / Activities Consent
D J C replied to Kip's topic in Verdant Family
Nick: .DjC. Rank: 3 Date of war: 05/01/2021 The reason I can’t come at war: Just noticed that something important happened on Real-life, i have to consider it, sorry Invoice number this week (x/2): 1/2 Other specifications: Forgive me and Good luck at war. -
Here’s to another year full of joy, laughter, and unforgettable memories with an unforgettable. Happy new year friends!!
-
SF Police Department - 💬 Discuții / Discussions 💬
D J C replied to Kelton's topic in SF Police Department
Now that we are entering 2021, its best to let 2020 become a distant memory and celebrate the upcoming year with a lot of joy and happiness. With social distancing norms and curfews in place, ringing in the New Year will not be the same as it used to be. So, for people who are miles apart. Happy new year Department members!! -
Exacly, what Tupi linked here, it's wiki website Which is placed in the case of Opcodes. Comes with examples and explanations. Which is good website to use.
-
This is what I realized. I think you want the right package of SAMPFUNCS. Sampfuns v5.4.1 download link: sf_5_4_1_sdk download link: https://www.mediafire.com/file/9dpe1kisamwbvw9/sf_5_4_1_sdk.zip/file File preview: And files that must be installed in the Sanny builder 3 before scripting. otherwise The program does not support and compile opcodes at all.
-
Doresc cu numele: DjC Lucrarea: V1
-
Verdant Family - Invoiri Activitati / Activities Consent
D J C replied to Kip's topic in Verdant Family
Nick: .DjC. Rank: 2 Date of war: 18/12/2020 The reason I can’t come at war: Exam from the high school. Invoice number this week (x/2): 2/2 Other specifications: Good luck -
@Tupi Okay then. I appreciate For your advice! ❤️
-
*Changing the Character skin with an command* Today I am going to share my first tutorial, so if you do something wrong and I miss the wrong place, Please Forgive me. This tutorial is definitely very convenient. So it is better to finish the work as soon as possible and briefly 1. Includes required: Includes required to write code: a_samp sscanf Zcmd Zcmd download link: https://github.com/Southclaws/zcmd For a_samp, sscanf, It is one of the default inclusions and you do not need to download it from anywhere. Because pawn should be always available in Incloud (Itself) Without these include Your code will be incorrect and you will receive many errors and it doesn't compile at all. In Pawn language, We are using #include function to include files. Example: #include <include filename> The file name must be between < > otherwise the inclusions will not load !! SO, We put the includes in the code: #include <a_samp> #include <zcmd> #include <sscanf> By the way, Always try to prioritize <a_samp> at First. 2. Creating the SetSkin Command Making a Command with ZCMD is one of the easiest parts of our job Example: CMD:mycommand(playerid,params[]) { //some code here... return 1; } Now let's move on to writing the code. First we make the Simple Command at first, CMD:setskin(playerid,params[]) { return 1; } Who can use this command? Admin(rcon)? If you want only admins to use this command, then we will write this code in the command section. if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xCC3300FF, "You are not admin!"); //0xCC3300FF = Red color The command has been fixed so far. Now we have to do something that commands It needs to the Name/PlayerID and the Skin ID, otherwise it will give an error: if(sscanf(params,"ud", params[0],params[1])) return SendClientMessage(playerid, 0x778899FF, "Error: /skin <Name/PlayerID> <SkinID>."); //0x778899FF = Grey color params[0] related to Name/PlayerID and params[1] related to SkinID Now, for params[1], mean is SkinID, We need to create a numerical limit between 0 and 299 (We have 0-299 skin at all.): Skin list if needed: https://wiki.multitheftauto.com/wiki/All_Skins_Page if(params[1] > 299 || params[1] < 1) return SendClientMessage(playerid, 0xCC3300FF, "Error: Invalid skin ID!"); //0xCC3300FF = Red color Now let write the last error, for The player that is Connected on the server or not: if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, 0xFFFFFFFF, "The player is not connected"); //0xFFFFFFFF = White color So far, we have fixed all the errors and limitations, Up to this point, if everything was OK, the command would work correctly on the received information, Now we go to the skin set code SetPlayerSkin(params[0], params[1]); As i hope you get it that params[0] Related to the information entered from command that player used. params[0] = Name/PlayerID | params[1] = SkinID So, the received information will be finally works. The code must be like this: CMD:setskin(playerid,params[]) { if (!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xCC3300FF, "You are not admin!"); //0xCC3300FF = Red color if(sscanf(params,"ud", params[0],params[1])) return SendClientMessage(playerid, 0x778899FF, "Error: /skin <Name/PlayerID> <SkinID>."); //0x778899FF = Grey color if(params[1] > 299 || params[1] < 1) return SendClientMessage(playerid, 0xCC3300FF, "Error: Invalid skin ID!"); //0xCC3300FF = Red color if(!IsPlayerConnected(params[0])) return SendClientMessage(playerid, 0xFFFFFFFF, "The player is not connected"); //0xFFFFFFFF = White color SetPlayerSkin(params[0], params[1]); return 1; } We hope you enjoy this tutorial, wishes best.
-
Verdant Family - Invoiri Activitati / Activities Consent
D J C replied to Kip's topic in Verdant Family
Nick: .DjC. Rank: 2 Date of war: 16/12/2020 The reason I can’t come at war: Exam from the high school. Invoice number this week (x/2): 1/2 Other specifications: Good luck