SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 205
Search took 0.00 seconds.
Search: Posts Made By: Mike861
Forum: Scripting Help 27/12/2018, 01:09 PM
Replies: 2
Views: 154
Posted By Mike861
Re: Learning Scripting

https://wiki.sa-mp.com
https://forum.sa-mp.com/forumdisplay.php?f=70
Pretty much, you need to practice.
Forum: Scripting Help 25/12/2018, 12:05 PM
Replies: 8
Views: 205
Posted By Mike861
Re: How can i make a cmd with optional options?

Use sscanf.
https://forum.sa-mp.com/showthread.php?t=570927
Example:
if(sscanf(params,"i",id))
Forum: Scripting Help 24/12/2018, 09:31 PM
Replies: 3
Views: 113
Posted By Mike861
Re: GTAMPCZ

Yep, it takes alot of effort. Im actually into freeroam alot, got a gamemode of mine im scripting from scratch and i only reached 1k+ lines of code. Im sure you can find some resources from game...
Forum: Scripting Help 24/12/2018, 08:25 PM
Replies: 3
Views: 113
Posted By Mike861
Re: GTAMPCZ

Some things like fast food and ammunation can be manually set in the custom interiors you make, its what i found out and spent months investigating. The rest must be scripted. You can find camera...
Forum: Scripting Help 24/12/2018, 08:21 PM
Replies: 4
Views: 124
Posted By Mike861
Re: 3DText Label thickness

From my experience, outline was not available for some of the colors. Although someone else may know the exact reason, this is only what i tested.
Forum: News and Updates 15/12/2018, 02:00 PM
Replies: 146
Views: 42,625
Posted By Mike861
Re: SA-MP 0.3.7 R3 client update (optional)

I know right, thats why i asked.
Forum: News and Updates 15/12/2018, 01:34 PM
Replies: 146
Views: 42,625
Posted By Mike861
Re: SA-MP 0.3.7 R3 client update (optional)

When will we have server files for 0.3.7 R3?
Forum: Scripting Help 09/12/2018, 12:37 PM
Replies: 5
Views: 109
Posted By Mike861
Re: CMD not working

Show OnPlayerCommandPerformed callback (if you have it).
Otherwise im not sure what the issue might be.
Forum: Scripting Help 09/12/2018, 12:27 PM
Replies: 5
Views: 109
Posted By Mike861
Re: CMD not working

CMD:heal(playerid, params[])
{
new targetid,amount;
if(sscanf(params, "ud", targetid,amount)) return SendClientMessage(playerid, 0xFF0000AA, "Perdorimi: /heal [ID]");
...
Forum: Scripting Help 04/12/2018, 04:56 PM
Replies: 8
Views: 264
Posted By Mike861
Re: [Help] RequestClass

public OnPlayerRequestClass(playerid, classid)
{
if(LoggedIn[playerid] == 0)
{
return 0;
}
return 1;
}

You could make a variable to check if the player has entered...
Forum: Everything and Nothing 01/12/2018, 01:58 PM
Replies: 6
Views: 696
Posted By Mike861
Re: SA-MP 2007-2006 video

Honestly, i think there should be an official tab instead of hosted one. SA-MP team should assign servers that are the most popular and that have been around for a long time now. Instead of paying...
Forum: Scripting Help 25/11/2018, 11:48 AM
Replies: 5
Views: 298
Posted By Mike861
Forum: General 24/11/2018, 09:03 PM
Replies: 95
Views: 13,479
Posted By Mike861
Re: Dear server owners (fake players)

I remember joining one of those Russian servers on top of the tabs. Turns out they're not having that much players. Did they got removed?
Forum: Scripting Help 19/11/2018, 01:00 PM
Replies: 7
Views: 221
Posted By Mike861
Re: Prevent explosion of a gas stand - gas stations

You could freeze the player OnPlayerUpdate if he gets too close to gas stations position.
Forum: Scripting Help 12/11/2018, 12:36 PM
Replies: 6
Views: 150
Posted By Mike861
Re: Help me for oldskin?

oldskin[playerid] = GetPlayerSkin(playerid);
Forum: Scripting Help 12/11/2018, 10:40 AM
Replies: 10
Views: 221
Posted By Mike861
Re: The Problem?

pLogged[playerid] = 1; obviously.
Forum: Scripting Help 12/11/2018, 09:18 AM
Replies: 10
Views: 221
Posted By Mike861
Re: The Problem?

In case DIALOG_LOGIN where player logs in.
Forum: Scripting Help 11/11/2018, 07:39 PM
Replies: 10
Views: 221
Posted By Mike861
Re: The Problem?

You need to put pLogged[playerid] = 1; under login dialog where logged in successfuly message is.
Forum: Scripting Help 11/11/2018, 06:48 PM
Replies: 10
Views: 221
Posted By Mike861
Re: The Problem?

public OnPlayerRequestClass(playerid, classid)
{
if(pLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREEN, "You need to be registered/logged in to spawn!");
return 0;
}...
Forum: Scripting Help 11/11/2018, 03:49 PM
Replies: 10
Views: 221
Posted By Mike861
Re: The Problem?

Remove SpawnPlayer from your first code.
Make some kind of logged in variable which will restrict players from spawning if they aren't logged in. Simply do return 0; under onplayerrequestclass if...
Forum: Scripting Help 07/11/2018, 08:39 PM
Replies: 14
Views: 317
Posted By Mike861
Re: textdraw model preview

Try setting it to false.
Forum: Scripting Help 07/11/2018, 08:34 PM
Replies: 14
Views: 317
Posted By Mike861
Re: textdraw model preview

Remove TextDrawUseBox(Text1, true); aswell as TextDrawBoxColor(Text1,0);
Forum: Filterscripts 06/11/2018, 04:23 PM
Replies: 12
Views: 4,480
Posted By Mike861
Re: Dynamic Vehicles - GTA's Spawns

Do the vehicles i make save?
Forum: Scripting Help 06/11/2018, 09:02 AM
Replies: 8
Views: 97
Posted By Mike861
Re: ApplyActorAnimation crashes my game

Thanks it works, but is it possible to combine all the animation movements like from singleplayer?
Forum: Scripting Help 06/11/2018, 08:54 AM
Replies: 8
Views: 97
Posted By Mike861
Re: ApplyActorAnimation crashes my game

So i assume this is the solution?
ApplyActorAnimation(PizzaActor, "FOOD", "SHP_Tray_In", 4.1, 0, 0, 0, 0, 0);
Showing results 1 to 25 of 205

 

All times are GMT. The time now is 10:30 PM.


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