Search Results
@kemppis_: pawn Код: COMMAND:pm(playerid, params[]){    new text;    new pID;    if(!sscanf(params, "us", pID, text))    {        new name[MAX_PLAYER_NAME];        new string[128]...
409
Quote: Originally Posted by kemppis_ i think it is "if (strcmp(cmdtext, "/admins", true) == 0)" Doesn't matter, both the strcmp codes are the same, so it makes no difference at all.
409
Quote: Originally Posted by Biesmen You also have to attach the 3DText label to someone. Dude, a player is not a gas station, so I don't think he wants to attach it. pawn Код: Crea...
121
Try the code below, and edit it to your likings. pawn Код: new date[4];// Put this snippet where you want it.new year, month, day;getdate(year, month, day);date[0] = year;date[1] = month;date[2] ...
41
Save it in a variable... pawn Код: new gmtext[32];public OnGameModeInit(){    SetGameModeText("Test");     strmid(gmtext, "Test", 0, strlen("Test"), 255);    return 1;}GetGameModeText(){  ...
42
Looks like you're just adding a bunch of numbers up together and returning it. Well, adler32 is similar to this one, but I wouldn't say, ehh, really safe.
165
For cutscenes, use SetPlayerCameraPos, etc, and for the first mission, spawn the player in an alleyway with a BMX, and set the checkpoint towards Grove Street. There you go, the first mission. The r...
112
Quote: Originally Posted by marinov it will probably have multiplayer already I'd buy the game if it did, just like I did when I first heard about San Andreas, and back then I didn't ev...
185
Quote: Originally Posted by Mr187 I don't think GTA 5 will be around anytime soon lol. I second this, it requires a lot of time to develop a GTA game.
185
I did the same thing yesterday, fixed. :P pawn Код: if(strcmp(cmdtext, "/zelenxo", true) == 0);    {        new pName[MAX_PLAYER_NAME];        GetPlayerName(playerid, pName, sizeof(pName...
123
I don't know if it will work, but you gotta format the string first (pretty sure). pawn Code: new s[16];format(s, sizeof(s), "Message\n");strcat(string, s, sizeof(string)); // how do I insert a stri...
72
Yes, it can be found in utils.inc. pawn Код: IsNumeric(const string[]){    for (new i = 0, j = strlen(string); i < j; i++)    {        if (string[i] > '9' || string[i] < '0') ret...
131
You should really indent your code, and you should hash the password, and I don't recommend using Dini, it's pretty old, and it requires a 256 cell (which equals to 1024 bytes which is 1 kb which take...
97
Try pawn Код: if(text[0] == '@')
97
pawn Код: forward Serverlog(string[]);public Serverlog(string[]){    new entry[128 + 64];    new Year, Month2, Day;    getdate(Year, Month2, Day);    new Hour, Minute, Second;    gettime...
97
Did you create a folder in your scriptfiles? AHA/Users/ Create a folder, name it AHA, then create another folder, name it Users, and drag the Users folder into the AHA folder, then drag the AHA fold...
53
512 cells for a string? No, that's just too much, unless you're splitting a string that will cover the whole chat box, it's not recommended. And there's no need for the 'char' in the string, and why ...
61
Yes, would you like an example? pawn Код: new Float:MultipleSpawns[][4]{    {x, y, z, angle},    {x, y, z, angle},    {x, y, z, angle}};public OnPlayerSpawn(playerid){    new rand = rando...
57
pawn Код: if(IsPlayerConnected(para1)){    new Float:x, Float:y, Float:z, Float:angle, car;    GetPlayerPos(playerid, x, y, z);    GetPlayerFacingAngle(playerid, angle);    car = CreateVeh...
77