SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 388
Search took 0.01 seconds.
Search: Posts Made By: Norck
Forum: Scripting Help 07/02/2012, 11:06 AM
Replies: 3
Views: 585
Posted By Norck
Re: Spawn message?

Check it out:

// at the top of your script
new bool:MsgSent[MAX_PLAYERS];

// inside OnPlayerConnect
MsgSent[playerid] = false;

// inside OnPlayerSpawn
Forum: Scripting Help 07/02/2012, 06:56 AM
Replies: 2
Views: 711
Posted By Norck
Re: Exp. Points at Payday [urgent]

//PlayerInfo[i][pExp]++; // pExp = pExp+1;
//PlayerInfo[i][pExp] +=1; // pExp = pExp+1;
PlayerInfo[i][pExp] +=2; // pExp = pExp+2;
Forum: Scripting Help 06/02/2012, 02:09 PM
Replies: 2
Views: 1,413
Posted By Norck
Re: [HELP] Show Player Icon on Map

Put this in your OnGameModeInit:

ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
Forum: Everything and Nothing 06/02/2012, 01:59 PM
Replies: 5
Views: 964
Posted By Norck
Re: Need more songs!

Well, if you like Korn, then you can try Genuflect, they also playing nu-metal.
Also, try Reveille and Enter Shikari, it's more like Rapcore, but since you listening to the LP you may also like it....
Forum: Everything and Nothing 06/02/2012, 09:19 AM
Replies: 5
Views: 964
Posted By Norck
Re: Need more songs!

Korn FTW! Have you heard other songs from their album The Path of Totality?

http://www.youtube.com/watch?v=jYDva7mYrq4

Bleeding Out(Feat. Feed Me)
Forum: Русский/Russian 05/02/2012, 12:53 PM
Replies: 3
Views: 2,178
Posted By Norck
Re: Проверка на нубо-ник

Проверить ник игрока можно таким образом:

new count;
for(new i=strlen(plname)-1; i != -1; i--)
{
switch(plname[i])
{
case '0'..'9': count ++;
}
}
Forum: Scripting Help 05/02/2012, 07:58 AM
Replies: 3
Views: 691
Posted By Norck
Re: Quick question

I think this is what you looking for:

// animlib
BLOWJOBZ

// animname
BJ_COUCH_START_W
BJ_COUCH_LOOP_W
BJ_COUCH_END_W
BJ_COUCH_START_P
Forum: Scripting Help 04/02/2012, 04:28 PM
Replies: 7
Views: 719
Posted By Norck
Re: when a player crashes +reps!

Yes, OnPlayerDisconnect gets called even if player crashes.
Forum: Русский/Russian 01/02/2012, 05:23 PM
Replies: 10
Views: 2,016
Posted By Norck
Re: Разница.

Я не имею опыта работы с чистым си, поэтому не уверен, что понял правильно. Но объявление глобальных переменных как static в некоторых ситуациях может оказаться очень выгодным решением.
Forum: Scripting Help 01/02/2012, 05:08 PM
Replies: 2
Views: 968
Posted By Norck
Re: help

Put

function8(arg0[], &arg1, arg2)

Instead of

function8(arg0, &arg1, arg2)

This should help.
Forum: Русский/Russian 01/02/2012, 04:55 PM
Replies: 2
Views: 1,506
Posted By Norck
Re: Проверка в радиусе машины.

Вот функция:

IsPlayerInRangeOfVehicle(playerid,Float:range,vehicleid)
{
new Float:x,Float:y,Float:z;
GetVehiclePos(vehicleid,x,y,z);
return...
Forum: Русский/Russian 01/02/2012, 04:50 PM
Replies: 15,913
Views: 2,391,201
Posted By Norck
Re: Скриптинг курилка

new Array[10][some_enum] =
{
{1, "one"},
{2, "two"},
{3, "three"},
// и так далее

};
Forum: Русский/Russian 01/02/2012, 04:40 PM
Replies: 10
Views: 2,016
Posted By Norck
Re: Разница.

Поправочка: если объявить глобальную переменную с ключевым словом static - это ограничит её видимость файлом, в котором она была объявлена. То есть в разных файлах мы можем иметь глобальные...
Forum: Русский/Russian 01/02/2012, 04:34 PM
Replies: 15,913
Views: 2,391,201
Posted By Norck
Re: Скриптинг курилка

enum some_enum
{
var1,
var2[32]
}

new Array[10][some_enum];
Forum: Scripting Help 27/01/2012, 07:44 PM
Replies: 10
Views: 2,321
Posted By Norck
Re: PHP-HTML-PAWN-MYSQL

It is not required for you to learn SQL if you wish to learn PHP, but you will need SQL knowledge if you wish to create your own website with data saving (eg. registration/login system).
Forum: Scripting Help 27/01/2012, 12:58 PM
Replies: 9
Views: 1,453
Posted By Norck
Re: Need help with /give weapon

There is no function that removes only one weapon. But there is a function that removes all player's weapons. So you can put all player's weapons into an array using GetPlayerWeaponData, then remove...
Forum: Scripting Help 26/01/2012, 07:13 PM
Replies: 1
Views: 659
Posted By Norck
Re: multihold

You can attach up to 10 objects to player using SetPlayerAttachedObject
http://wiki.sa-mp.com/wiki/SetPlayerAttachedObject
Forum: Scripting Help 26/01/2012, 07:01 PM
Replies: 2
Views: 609
Posted By Norck
Re: [Help] Mapping question

You can put all objects coords into an array, then change a position of each object using loop.
Forum: Scripting Help 13/01/2012, 01:59 PM
Replies: 5
Views: 978
Posted By Norck
Re: Noob question about normal AddStaticVehicleEx

Do you use SetVehicleToRespawn somewhere in your script?
Forum: Scripting Help 13/01/2012, 12:12 PM
Replies: 3
Views: 1,520
Posted By Norck
Re: Re : NF-RP.pwn(318) : error 021: symbol already defined: "escapedValue"

Probably it's defined in some include that you use.
Forum: Scripting Help 12/01/2012, 07:00 PM
Replies: 6
Views: 981
Posted By Norck
Re: Why my houses dont load when it says loaded?

Well, I don't see here any code that's related to the icons. Do you mean pickups?
Forum: Русский/Russian 12/01/2012, 03:02 PM
Replies: 14
Views: 3,729
Posted By Norck
Re: Каким образом можно разблокировать поезд?

Поезда можно создавать только при загрузке мода/фильтрскрипта с использованием функций AddStaticVehicle и AddStaticVehicleEx. То есть, ты не можешь сделать команду, при использовании которой будет...
Forum: Includes 12/01/2012, 11:55 AM
Replies: 43
Views: 36,048
Posted By Norck
Re: Fly. Just like a superman.

Maybe, but this is include, so this feature can be easily added into gamemode or filterscript that is already exists.
As you can see from the video it's smooth enough :)

Thanks all :D
Forum: Scripting Help 12/01/2012, 08:52 AM
Replies: 7
Views: 10,543
Posted By Norck
Re: [Help] error 035: argument type mismatch (argument 3) +rep !

Here you go:

new iString[1600];
format(iString, sizeof(iString),"{FF0000} Terminaste tu Mision %s !.\n\n\n\n", Name);
strcat(iString,"- {FFFFFF}Informacion:.\n\n");
...
Forum: Scripting Help 12/01/2012, 08:46 AM
Replies: 7
Views: 10,543
Posted By Norck
Showing results 1 to 25 of 388

 

All times are GMT. The time now is 08:00 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.