Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Kelvinvenema

#1
Hello guys I have run into some problems. I recently made a command EmergencyChat for my roleplay server. But the thing is I would like it to show what profession everybody has For example to visualize it:

EmergencyChat: Firefighter: TheKiller01:  "Message"
EmergencyChat: Police: Theweirdguy1:  "Message"
EmergencyChat: Paramedic: Niceman: "Message"

The code down here has something called + "Profession" +
The line with Profession should give the player the string with the Profession that depends on their Job if they are FireFighter the command should output firefighter.

I can't seem to work out how I should do it,
I really appreciate if you could help,

Code:

for( local i = 0; i <= GetMaxPlayers(); i++ )
{
plr = FindPlayer( i );
if ( ( plr ) && ( plr.Skin ==1 || 5 || 6) )
{
MessagePlayer("[#A42F2B][Emergency-Chat] " +Profession+" "+player.Name+  ":[#0CF4D4]  " + text + "", plr);
#2
Hello guys I have run into some problems. I recently made a command EmergencyChat for my roleplay server. But the thing is I would like it to show what profession everybody has For example to visualize it:

EmergencyChat: Firefighter: TheKiller01:  "Message"
EmergencyChat: Police: Theweirdguy1:  "Message"
EmergencyChat: Paramedic: Niceman: "Message"

The code down here has something called + "Profession" +
The line with Profession should give the player the string with the Profession that depends on their Job if they are FireFighter the command should output firefighter.

I can't seem to work out how I should do it,
I really appreciate if you could help,

Code:

for( local i = 0; i <= GetMaxPlayers(); i++ )
{
plr = FindPlayer( i );
if ( ( plr ) && ( plr.Skin ==1 || 5 || 6) )
{
MessagePlayer("[#A42F2B][Emergency-Chat] " +Profession+" "+player.Name+  ":[#0CF4D4]  " + text + "", plr);
#3
Hello guys sorry to bother you guys again, I really want to know how I can script with using "text"

I still have one question, how could I add multiple strings in text I know how I can use it in if statements, but the same way ain't
working when using text how can I combine this

 if (text == "a") && (text == "o")

how can I combine them to work fine it doesn't work if I do this:

if (text == "a || o ")
// Do function
#4
Hello, guys, can someone help me out I have tried my best to find something related to Alphabetical character but I found nothing.
I already know how I can use IsNum:
But I would like to know how I can specify a certain  number like 1 or 9 //  or character like A or Z

I tried doing this for IsNum:

if(IsNum == 5) MessagePlayer ("You have typed number 5", player );

it won't work.
I don't know if there is a value I can use to specify a character for example

if(Charac == 'a') MessagePlayer("You have typed A",player);

Anyways thanks for reading greets Kelvin.
#5
Hello guys can anyone help me how to add cooldowns to commands?
#6
General Discussion / I need your help
Dec 20, 2019, 09:19 PM
Hello guys, can some help me with getting custom stats that I can give the player?
I would like to have a points system, so that I can give players the necessary points, to activate a specific command.
For example, we will work with the Player.Stats.EmergencyPoints, if player.stats.EmergencyPoints <=10) MessagePlayer("you can't use this command",player);
With that way, I can add custom Stats that can only be activated by specific scores.
I don't know how to great that sort of thing, anyway thanks for reading hopefully someone can help me.
#7
General Discussion / Vcmp busses
May 04, 2018, 09:07 AM
Hello, guys or developers i have a questing can some tell me why there only can sit like 2 players, inside a bus i hope someone can changes that will be a nice improvement, or can someone explain. why they don't have it.


Thanks for Reading From Kelvin
#8
Hello, guys can some one tell me how to create jobs pss i'm noob
#9
General Discussion / Help
Apr 28, 2018, 02:48 PM
Hello guys, can anyone help me?
I need a /park cmd for if i sit inside the verhicle and /park it will put it on the place where i did /park
#10
I have a problem error AN ERROR HAS OCCURED [the index 'ConnectSQL' does not exist] but i don't know how to put it and lett it work i hope some one can help me to fix that ;) Another problem is that Plugin error >> LoadLibrary() 'plugins/sqlite04rel64.dll' failed: Code 126
Failed to load plugin: sqlite04rel64 i'm trying to load but it won't :'(
#11
I have quistiong How to save my weapon and Object and Game database and spawndata base i mean if it don't reset if i walk to a window i stay there if i relog if i shoot one it didn't reset too 200 ammo