Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 156 online users. » 0 Member(s) | 152 Guest(s) Google, Bing, Yandex, Applebot
|
Latest Threads |
AntyCheat System [SA-MP/O...
Forum: Filterscripts
Last Post: 2PAC_
5 hours ago
» Replies: 7
» Views: 8,323
|
Iron Horizon Roleplay[v1....
Forum: Advertisements
Last Post: MikeNGRP
2025-07-11, 11:44 PM
» Replies: 0
» Views: 19
|
[MAP PACK] 5 NEW LS BUILD...
Forum: Videos and Screenshots
Last Post: Apollo4430
2025-07-11, 12:20 AM
» Replies: 1
» Views: 3,337
|
Open.mp / SAMP Query
Forum: Releases
Last Post: laex
2025-07-09, 04:07 AM
» Replies: 2
» Views: 110
|
some text appearing in my...
Forum: Support
Last Post: Sizy
2025-07-08, 07:33 AM
» Replies: 0
» Views: 35
|
Offensive-Core: TDM
Forum: Gamemodes
Last Post: NikitaFoxze
2025-07-08, 12:13 AM
» Replies: 3
» Views: 3,674
|
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
2025-07-06, 10:28 AM
» Replies: 0
» Views: 53
|
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
2025-07-05, 11:35 PM
» Replies: 0
» Views: 35
|
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
2025-07-05, 11:05 PM
» Replies: 2
» Views: 113
|
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 73
|
|
|
PlayerTextDrawBoxColor is not work |
Posted by: Zow - 2020-11-20, 11:28 AM - Forum: Pawn Scripting
- No Replies
|
 |
When I typed /show and then rCheck only switch me from 0 to 1 and done?
I want them to keep count until the end?
I know my code look stupid but I dont know how to do it in other way
Code: CMD:show(playerid, params[])
{
? ? PlayerTextDrawShow(playerid, Brandom[playerid]);
? ? PlayerTextDrawShow(playerid, Lrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Mrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Rrandom[playerid]);
? ? Timer[playerid] = SetTimerEx("rCheck", 100, true, "dd", playerid, RCount[playerid]);
return 1;
}
CMD:hide(playerid, params[])
{
? ? PlayerTextDrawHide(playerid, Brandom[playerid]);
? ? PlayerTextDrawHide(playerid, Lrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Mrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Rrandom[playerid]);
? ? KillTimer(Timer[playerid]);
return 1;
}
Hide(playerid)
{
? ? PlayerTextDrawHide(playerid, Lrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Mrandom[playerid]);
? ? PlayerTextDrawHide(playerid, Rrandom[playerid]);
? ? return 1;
}
Show(playerid)
{
? ? PlayerTextDrawShow(playerid, Lrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Mrandom[playerid]);
? ? PlayerTextDrawShow(playerid, Rrandom[playerid]);
? ? return 1;
}
Frandom(playerid)
{
? ? PlayerTextDrawBoxColor(playerid, Lrandom[playerid], -16776961);
? ? PlayerTextDrawBoxColor(playerid, Mrandom[playerid], 115);
? ? PlayerTextDrawBoxColor(playerid, Rrandom[playerid], -16776961);
}
Srandom(playerid)
{
? ? PlayerTextDrawBoxColor(playerid, Lrandom[playerid], 115);
? ? PlayerTextDrawBoxColor(playerid, Mrandom[playerid], -16776961);
? ? PlayerTextDrawBoxColor(playerid, Rrandom[playerid], 115);
}
forward rCheck(playerid, count);
public rCheck(playerid, count)
{
? ? switch(count)
? ? {
? ? ? ? case 0:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 1:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 2:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 3:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 4:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 5:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 6:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 7:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 8:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 9:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 10:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 11:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 12:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Frandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 13:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? Srandom(playerid);
? ? ? ? ? ? Show(playerid);
? ? ? ? }
? ? ? ? case 14:
? ? ? ? {
? ? ? ? ? ? Hide(playerid);
? ? ? ? ? ? KillTimer(Timer[playerid]);
? ? ? ? }
? ? }
? ? RCount[playerid];
? ? return 1;
}
|
|
|
Help me with an idea please |
Posted by: Ryder Sixz - 2020-11-18, 10:45 PM - Forum: General Discussions
- Replies (5)
|
 |
Hello, I have been developing a Roleplay gamemode for months, I do it more to pass the time than for anything else. Well the fact is that I am in the part of the works, and I would like you to help me with any suggestion that another job could implement the GM, the ones I already have are:?
-Garbage man
-Taxi driver?
-Policeman?
-Miiner?
-Harvester?
-Street sweeper?
-Lumberjack?
-Trucker?
What other do you recommend? I appreciate any ideas, greetings to all!
|
|
|
How can i embed color in Textdraw? |
Posted by: Cada - 2020-11-14, 07:59 AM - Forum: General Discussions
- Replies (3)
|
 |
Hello.
I want to make Textdraw with couple of colors.
I know that i can make it like " Oh!?~r~Hello ~w~World" but i can`t " Oh! {FF0000}Hello {FFFFFF}World".
i want to embed hex color. can i do it?
Finally, i want to make textdraw based on gray, and make some color red.
Ex) {Gray}Oh!! Hey, {Red}How {Gray}are you?
Plz help me!!
|
|
|
Server crash and i don't know why |
Posted by: Rocko Schultz - 2020-11-13, 11:44 PM - Forum: Pawn Scripting
- Replies (2)
|
 |
Hello, I have a Roleplay server in Spanish and when you do things in the game, the server crashes randomly leaving an error, here it is
Code: [18:07:24] [cmd] [Martin Torres]: /me escribe su nombre en la computadora
[18:07:26] [cmd] [Kerderius Nash]: /robarcaja
[18:07:27] [cmd] [Kurtis Mcclain]: /b vamo a josiar oe
[18:07:32] [chat] [Qualeek_Raid]: Mi error
[18:07:33] [cmd] [Kerderius Nash]: /b necesito habilidad XD
[18:07:35] [chat] [Martin_Torres]: Que paso
[18:07:37] [debug] Server crashed while executing roleplay.amx
[18:07:37] [debug] AMX backtrace:
[18:07:37] [debug] #0 00000037 in ?? (51, 0, 29782696) from roleplay.amx
[18:07:37] [debug] #1 0001a72c in ?? (51, 0, 1605308713, 82, 111, 112, 97, 95, 65, 114, ... <2 arguments>) from roleplay.amx
[18:07:37] [debug] #2 00000037 in public OnPlayerKeyStateChange () from roleplay.amx
Sorry for my bad English I'm from Uruguay, so I don't speak it very well
|
|
|
Medieval world in SAMP? |
Posted by: Ryder Sixz - 2020-11-12, 12:39 PM - Forum: General Discussions
- Replies (4)
|
 |
Well, I've been in samp for about 6 years and since I have seen many types of servers, including one where the theme was medieval, the server is called Port Royale (it is in the Hispanic community) the fact is that they have been developing Gm for about 2 years and Not yet out. The server used the now non-existent version 0.3DL of the now almost dead SA: MP platform so I think the project failed (I would know about it but they banned me from its discord :P) So the intention of this post is to ask If doing something like this is possible, medieval cities, maps with such themes, horses, and everything you need to create something like that. I'm too interested in your opinion.
|
|
|
|