Few questions
#1

Howdy' everyone.
I just created a Death-match area in her own virtual world so basically my questions are -
1. Is there a way to put objects ONLY in a X virtual world? ( i don't want the regular world will see the objects).
2. What is streamer ? How it can be help me?
3. I saw the 'Moving camera' script and i liked it, How can i put random dance (I mean the dance will change no each time a different dance).

Thanks for your time.
Reply
#2

1. Yes there is, through the use of a streamer.

2. Allows you to basically add an infinite amount of objects and do what is mentioned in one.

3. Use "Rand" and SetPlayerSpecialAction.
Reply
#3

1. Yes,with streamer plugin
Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
worldid,-1 is for all worlds.
2. Streamer it helps you to add more object,to move them..etc
3 I don`t understand.

Edit: To late.
Reply
#4

Wow sound great, is that a good streamer ? https://sampforum.blast.hk/showthread.php?tid=102865

I will try to create the Rand dance.
Reply
#5

Quote:
Originally Posted by Firo
Посмотреть сообщение
Wow sound great, is that a good streamer ? https://sampforum.blast.hk/showthread.php?tid=102865

I will try to create the Rand dance.
One more question, How can i create a command with a space between the command to the number, like /Help 1 and no /Help1?
Thanks.
Reply
#6

Quote:
Originally Posted by Firo
Посмотреть сообщение
Wow sound great, is that a good streamer ? https://sampforum.blast.hk/showthread.php?tid=102865

I will try to create the Rand dance.
Yes that is good streamer we recommend it

Quote:
Originally Posted by Firo
Посмотреть сообщение
One more question, How can i create a command with a space between the command to the number, like /Help 1 and no /Help1?
Thanks.
use strcmp

Ex.

pawn Код:
CMD:help(playerid, params[])
{
    if(strcmp(params, "1", true) == 0)
    {
         //codes
    }
    else if(strcmp(params, "2", true) == 0)
    {
        //codes
    }
    return 1;
}
that is if you are using ZCMD this is how to do it if you are using strcmp that uses OnPlayerCommandText

pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
    if(strcmp(cmdtext, "1", true) == 0)
    {
        //codes
    }
    else if(strcmp(cmdtext, "2", true) == 0)
    {
        //codes
    }
    return 1;
}
Not sure if it work i'm not familiar with strcmp OnPlayerCommandText

Usage: /help [1/2] to add more duplicate the strcmp and change the value "1"

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 27 seconds.
Reply
#7

Quote:
Originally Posted by Romel
Посмотреть сообщение
Yes that is good streamer we recommend it



use strcmp

Ex.

pawn Код:
CMD:help(playerid, params[])
{
    if(strcmp(params, "1", true) == 0)
    {
         //codes
    }
    else if(strcmp(params, "2", true) == 0)
    {
        //codes
    }
    return 1;
}
that is if you are using ZCMD this is how to do it if you are using strcmp that uses OnPlayerCommandText

pawn Код:
if(strcmp(cmdtext, "/help", true) == 0)
{
    if(strcmp(cmdtext, "1", true) == 0)
    {
        //codes
    }
    else if(strcmp(cmdtext, "2", true) == 0)
    {
        //codes
    }
    return 1;
}
Not sure if it work i'm not familiar with strcmp OnPlayerCommandText

Usage: /help [1/2] to add more duplicate the strcmp and change the value "1"

Код:
This forum requires that you wait 120 seconds between posts. Please try again in 27 seconds.
lol this fourm require? lol..

Anyway, i'm using the normal commands and no zCmd.
pawn Код:
(1243) : error 017: undefined symbol "params"
(1254) : warning 217: loose indentation
1254) : error 017: undefined symbol "params"
(1259) : warning 217: loose indentation
pawn Код:
1243 : if(strcmp(params, "1", true) == 0)
1254 : else if(strcmp(params, "2", true) == 0)
1259 : return 1;
EDIT : i just saw you posted how to do that in the normal way, i did it but when i'm doing the command nothing shown up, it's exist but nothing shown up.
Reply
#8

I just created it by some tutorial i read, but i have two warnings.
When i'm doing it in the server it's saying the usage line... again and again.

pawn Код:
(1258) : warning 217: loose indentation
(1265) : warning 217: loose indentation
pawn Код:
1258 : return 1;
1265 : return 1;
The whole command :

pawn Код:
if(strcmp(cmd,"/Carhelp",true)==0)
{

    tmp=strtok(cmdtext,idx);
    if(!strlen(tmp))  return SendClientMessage(playerid,0xFFFFFFFF,"Usage : /Carhelp [1-3]");
    if(strcmp(tmp,"1",true))
    {
            SendClientMessage(playerid,0x0099FFFF,"-------- [Vehicle/Car System!] --------");
            SendClientMessage(playerid,0x00FF00FF,"/Car - Information about a vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Cars - Information with Statistics about the server vehicles.");
            SendClientMessage(playerid,0x00FF00FF,"/Buycar - To buy a vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Sellcar - To sell your own vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Callcar - To call your vehicle to your currect position.");
            SendClientMessage(playerid,0x00FF00FF,"/Eject - To eject a player from your vehicle.");
            SendClientMessage(playerid,0x0099FFFF,"-------- [Carhelp Page 1] --------");

        return 1;
    }
    if(strcmp(tmp,"2",true))
    {
    SendClientMessage(playerid,0x0099FFFF,"[The3DeViL Helping Menu] щмен мк, бшек дба мъфшйи дтжшд, осфш 2");
        return 1;
    }
   
    return 1;
}
Reply
#9

Quote:
Originally Posted by Firo
Посмотреть сообщение
I just created it by some tutorial i read, but i have two warnings.
When i'm doing it in the server it's saying the usage line... again and again.

pawn Код:
(1258) : warning 217: loose indentation
(1265) : warning 217: loose indentation
pawn Код:
1258 : return 1;
1265 : return 1;
The whole command :

pawn Код:
if(strcmp(cmd,"/Carhelp",true)==0)
{

    tmp=strtok(cmdtext,idx);
    if(!strlen(tmp))  return SendClientMessage(playerid,0xFFFFFFFF,"Usage : /Carhelp [1-3]");
    if(strcmp(tmp,"1",true))
    {
            SendClientMessage(playerid,0x0099FFFF,"-------- [Vehicle/Car System!] --------");
            SendClientMessage(playerid,0x00FF00FF,"/Car - Information about a vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Cars - Information with Statistics about the server vehicles.");
            SendClientMessage(playerid,0x00FF00FF,"/Buycar - To buy a vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Sellcar - To sell your own vehicle.");
            SendClientMessage(playerid,0x00FF00FF,"/Callcar - To call your vehicle to your currect position.");
            SendClientMessage(playerid,0x00FF00FF,"/Eject - To eject a player from your vehicle.");
            SendClientMessage(playerid,0x0099FFFF,"-------- [Carhelp Page 1] --------");

        return 1;
    }
    if(strcmp(tmp,"2",true))
    {
    SendClientMessage(playerid,0x0099FFFF,"[The3DeViL Helping Menu] щмен мк, бшек дба мъфшйи дтжшд, осфш 2");
        return 1;
    }
   
    return 1;
}
pawn Код:
if(strcmp(cmd,"/Carhelp",true)==0)
{
    tmp=strtok(cmdtext,idx);
    if(!strlen(tmp))  return SendClientMessage(playerid,0xFFFFFFFF,"Usage : /Carhelp [1-3]");
    if(strcmp(tmp,"1",true))
    {
        SendClientMessage(playerid,0x0099FFFF,"-------- [Vehicle/Car System!] --------");
        SendClientMessage(playerid,0x00FF00FF,"/Car - Information about a vehicle.");
        SendClientMessage(playerid,0x00FF00FF,"/Cars - Information with Statistics about the server vehicles.");
        SendClientMessage(playerid,0x00FF00FF,"/Buycar - To buy a vehicle.");
        SendClientMessage(playerid,0x00FF00FF,"/Sellcar - To sell your own vehicle.");
        SendClientMessage(playerid,0x00FF00FF,"/Callcar - To call your vehicle to your currect position.");
        SendClientMessage(playerid,0x00FF00FF,"/Eject - To eject a player from your vehicle.");
        SendClientMessage(playerid,0x0099FFFF,"-------- [Carhelp Page 1] --------");
        return 1;
    }
    if(strcmp(tmp,"2",true))
    {
        SendClientMessage(playerid,0x0099FFFF,"[The3DeViL Helping Menu] u`i`a*i' i`e^, a'?a*e^ a"a'a` i`u'o^?e'e` a"o`??a", i^n~o^? 2");
        return 1;
    }
    return 1;
Reply
#10

Quote:
Originally Posted by TzAkS.
Посмотреть сообщение
1. Yes,with streamer plugin
Код:
native CreateDynamicObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
worldid,-1 is for all worlds.
2. Streamer it helps you to add more object,to move them..etc
3 I don`t understand.

Edit: To late.
I got 300 objects how do i put them all like this in a second? i aint going to write so long
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)