Help please
#1

hey guys im in need of help please

i need to create commands as /help and like those

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;

}

what i have to type on the // to and where i save it so i can use them ingame

and also please i need help on putting maps how do i active them ingame

im trying to make a gamemode for my server please
Reply
#2

Use the wiki and search the forums, we're not gonna learn you the basics before you havent considered searching, making a gamemode for a server isnt something u do in 5 minutes.
Reply
#3

pawn Код:
if (strcmp("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, color, "HOUSE: /unlock /lock /rent /unrent");//command help
SendClientMessage(playerid, color, "CAR: /unlock /lock /rent /unrent");// etc.
}
return 1;
}
example for give player money command
pawn Код:
if (strcmp("/givememoney", cmdtext, true, 10) == 0)
{
GivePlayerMoney(playerid, 50000)
}
return 1;
}
EDIT:
Quote:
Originally Posted by Bessensap
Посмотреть сообщение
Use the wiki and search the forums, we're not gonna learn you the basics before you havent considered searching, making a gamemode for a server isnt something u do in 5 minutes.
I agree
Reply
#4

HrvojeCro, you can't return 1 in OnPlayerCommandText, especially in filterscripts. It may disallow to other filterscripts get commands.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)