[im new with server !!!] need help with creat gamemods (maps) and some cmds|/help-/rules-/sf...
#1

Hi All im new with server !!! I want creat my own server but some i dont know :

1) how to build maps for server | gamemod | i want build maps and stunt and another area and but it in my server and play it ?||||||| How To Do That ?>>>>>> and i use MTA but i still didn't know !!!


---------------------------------------------------------------------------------------------------------------

2) How To make teleports and ( teleports to place you will get weapon example : like minigun you will get the gun with amoo |

and why this /teleport didnt work /?


PHP код:
if (!strcmp(cmdtext"/sf2"true))
    {
    
//C = SetTimerEx("CargandoMapa", 1000, 1,"e",playerid);
    
GameTextForPlayer(playerid"~<~ ~b~LOS ~r~SANTOS ~>~"50003);
    
Teletransportar(playerid1521.8654,-1599.3501,13.5469);
    return 
1;}
    if (!
strcmp(cmdtext"/prison"true))
    {
    
Teletransportar(playerid,-1672.9810,-187.9245,14.1484);
    return 
1;
    } 
-------------------------------------------------------------------------------------------------------------
And why didnt this cmd run ?


PHP код:
if (strcmp cmd,"shelp"true)==|| strcmp (cmd"/shelp"true)==0)
    {
    
SendMessage(playeridCOLOR_BLANCO"                            ||shelp||");
    
SendMessage(playeridCOLOR_VERDECLARO,"1.For Commands Use /cmds And /cmds2");
    
SendMessage(playeridCOLOR_VERDECLARO,"2.For rules use /srules");
    
SendMessage(playeridCOLOR_VERDECLARO,"3.For teleports use /teles");
    
SendMessage(playeridCOLOR_VERDECLARO,"4.For Dm Zone Use /teles2 And /dm);
    SendMessage(playerid, COLOR_VERDECLARO,"
5.For health and armour use /heal and /armour");
    SendMessage(playerid, COLOR_VERDECLARO,"
6.If you see Hacker Use /report");
    SendMessage(playerid, COLOR_VERDECLARO,"
7.For special messenge use /pm");
    SendMessage(playerid, COLOR_VERDECLARO,"
8.Only Admin : /adminhc");
    SendMessage(playerid, COLOR_BLANCO, "                            
||shelp||");
    return 1;} 
Reply
#2

I think you might want to read over a few of the basics on the Wiki site, I have no idea if they are your own functions but I highly doubt that you created your own functions in replacement of those.

pawn Код:
if (!strcmp(cmdtext, "/sf2", true))
    {
    //C = SetTimerEx("CargandoMapa", 1000, 1,"e",playerid);
    GameTextForPlayer(playerid, "~<~ ~b~LOS ~r~SANTOS ~>~", 5000, 3);
    Teletransportar(playerid, 1521.8654,-1599.3501,13.5469);
    return 1;}
    if (!strcmp(cmdtext, "/prison", true))
    {
    Teletransportar(playerid,-1672.9810,-187.9245,14.1484);
    return 1;
    }
"Teletransportar" doesn't exist (not that I know of), and in it's place; you should use SetPlayerPos.

I also recommend that you use ZCMD instead of the old method you're using, as it's a lot quicker and a lot easier.

For example:

pawn Код:
COMMAND:sf2(playerid, params[])
{
    GameTextForPlayer(playerid, "~<~ ~b~LOS ~r~SANTOS ~>~", 5000, 3);
    SetPlayerPos(playerid, 1521.8654,-1599.3501,13.5469);
    return 1;
}
pawn Код:
COMMAND:prison(playerid, params[])
{
    SetPlayerPos(playerid, -1672.9810, -187.9245, 14.1484);
    return 1;
}
Much simpler, no? Re-read the Wiki site and make sure you get your functions correct, because your code is really, really messy.

You may also want to put your "SF" teleports inside parameters using sscanf, and you can find a tutorial for that in my signature which I wrote myself. Again, looking at your second command:

pawn Код:
COMMAND:shelp(playerid, params[])
{
    SendClientMessage(playerid, COLOR_BLANCO, "                            ||shelp||");
    SendClientMessage(playerid, COLOR_VERDECLARO, "1.For Commands Use /cmds And /cmds2");
    SendClientMessage(playerid, COLOR_VERDECLARO, "2.For rules use /srules");
    SendClientMessage(playerid, COLOR_VERDECLARO, "3.For teleports use /teles");
    SendClientMessage(playerid, COLOR_VERDECLARO, "4.For Dm Zone Use /teles2 And /dm");
    SendClientMessage(playerid, COLOR_VERDECLARO, "5.For health and armour use /heal and /armour");
    SendClientMessage(playerid, COLOR_VERDECLARO, "6.If you see Hacker Use /report");
    SendClientMessage(playerid, COLOR_VERDECLARO, "7.For special messenge use /pm");
    SendClientMessage(playerid, COLOR_VERDECLARO, "8.Only Admin : /adminhc");
    SendClientMessage(playerid, COLOR_BLANCO, "                            ||shelp||");
    return 1;
}
Reply
#3

Quote:
Originally Posted by Str|ke
Посмотреть сообщение
Hi All im new with server !!! I want creat my own server but some i dont know :

1) how to build maps for server | gamemod | i want build maps and stunt and another area and but it in my server and play it ?||||||| How To Do That ?>>>>>> and i use MTA but i still didn't know !!!
Try this https://sampforum.blast.hk/showthread.php?tid=79220
it has easy to use instructions
Reply
#4

For help and rules is better use msgbox, like:
pawn Код:
ShowPlayerDialog(playerid, 1111, DIALOG_STYLE_MSGBOX,"Help","BASE\n /pm, /kill","OK","");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)