SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: dice7
Forum: Includes 23/12/2014, 11:41 AM
Replies: 237
Views: 71,191
Posted By dice7
Re: [alpha] Objects Physics - Handle objects collisions and more.

First of all this is amazing. Will this get updated? Using the Z axis would be really nice, so you can make a ball go down a staircase or similar

Very good work!
Forum: Scripting Help 07/03/2014, 11:40 AM
Replies: 4
Views: 396
Posted By dice7
Re: Help Fixing this error

COMMAND:GODON(playerid, params[5])
{
SetPlayerHealth(playerid, 99999);
}
Forum: Scripting Help 07/03/2014, 11:33 AM
Replies: 6
Views: 1,143
Posted By dice7
Re: INI DATA AREN'T SAVE! :(

Is PlayerInfo[playerid][pKey] a string?
Forum: Scripting Help 07/03/2014, 10:46 AM
Replies: 7
Views: 502
Posted By dice7
Re: Problem with code

else if (isplayerwell[playerid] == false && health >= 30)
{
ClearAnimations(playerid);
isplayerwell[playerid] = true;
}
Forum: Scripting Help 24/02/2012, 08:17 PM
Replies: 7
Views: 967
Posted By dice7
Re: Help with respawn vehicles

if(strcmp(cmdtext, "/respawncars", true) == 0)
{
if (IsPlayerAdmin(playerid))
{
new inVeh = 0;
for(new i = 0; i < MAX_VEHICLES; i++)
{
for (new j = 0; j < MAX_PLAYERS; j++)...
Forum: Scripting Help 24/02/2012, 08:09 PM
Replies: 1
Views: 827
Posted By dice7
Re: Help /startlotto

forward Lotto(number);



if(strcmp(cmd, "/startlotto", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] >= 1337)
{
Forum: Scripting Help 24/02/2012, 07:46 PM
Replies: 7
Views: 1,258
Posted By dice7
Re: Help here a bit +rep

#include <a_samp>

public OnPlayerConnect(playerid)
{
DisablePlayerCheckpoint(playerid);
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
Forum: Scripting Help 24/02/2012, 07:42 PM
Replies: 7
Views: 967
Posted By dice7
Re: Help with respawn vehicles

new inVeh = 0;
for(new i = 0; i < MAX_VEHICLES; i++)
{
for (new j = 0; j < MAX_PLAYERS; j++)
{
if (IsPlayerInVehicle(j, i))
{
inVeh = 1;
break;
}
Forum: Scripting Help 24/02/2012, 07:14 PM
Replies: 7
Views: 1,258
Posted By dice7
Re: Help here a bit +rep

public OnPlayerConnect(playerid)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, 2.1507,-29.0139,1003.5494, 2.0);
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{...
Forum: Scripting Help 24/02/2012, 07:06 PM
Replies: 9
Views: 1,702
Posted By dice7
Re: Anti spam?

Not tested


#include <a_samp>

new spamCount[MAX_PLAYERS];
new previousWord[MAX_PLAYERS][128];

public OnGameModeInit()
{
Forum: Scripting Help 24/02/2012, 06:44 PM
Replies: 4
Views: 1,283
Posted By dice7
Re: Freeze weather + time

Put this outside the loop
SetWorldTime(12);//12:00

and this under OnPlayerConnect

TogglePlayerClock(playerid, 0); // hide the clock
Forum: Scripting Help 24/02/2012, 06:39 PM
Replies: 7
Views: 1,258
Posted By dice7
Re: Help here a bit +rep

for(new i = 0; i < 247; i++)
{
if(PlayerToPoint(2.0,i,2.1507,-29.0139,1003.5494))
{
ShowPlayerDialog(i, 752, DIALOG_STYLE_LIST, "Welcome", "Radio($150)...
Forum: Scripting Help 23/02/2012, 09:48 PM
Replies: 12
Views: 1,566
Posted By dice7
Re: symbol is never used - HELP

You will have something like this in your script


strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
Forum: Scripting Help 23/02/2012, 09:46 PM
Replies: 1
Views: 542
Posted By dice7
Re: Params Not Detected When Using Command

The function will only work if the player is in a vehicle. How do you use the function ?
Forum: Scripting Help 23/02/2012, 09:43 PM
Replies: 12
Views: 1,566
Posted By dice7
Re: symbol is never used - HELP

Delete the whole strtok function and replace your OnPlayerCommandText with this


public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/lvap", true) == 0)
{
Forum: Scripting Help 23/02/2012, 05:44 PM
Replies: 5
Views: 948
Posted By dice7
Re: enum not updating.

droppedWepInfo[some index][some index][0] = 0
droppedWepInfo[some index][some index][1] = 0
//etc

or something
Forum: Scripting Help 23/02/2012, 08:21 AM
Replies: 5
Views: 948
Posted By dice7
Re: enum not updating.

You never actually reset any info in your enum, you just update it. If the file doesn't exist, then you need to reset/delete the info in the enum for that file/weapon
Forum: Scripting Help 19/02/2012, 10:24 AM
Replies: 5
Views: 2,618
Posted By dice7
Re: Mysql error.

Do you even have a database running on your computer?
Forum: Scripting Help 18/02/2012, 12:11 PM
Replies: 3
Views: 888
Posted By dice7
Re: Need help with this

Try this


new robmoney[MAX_PLAYERS];
public pRobTimer(playerid)
{
robmoney[playerid] += random(50000);
pRobCount[playerid]--;
IsRobbing[playerid] =1;
new rbgt[128];
Forum: Scripting Help 18/02/2012, 12:01 PM
Replies: 4
Views: 830
Posted By dice7
Re: Warning Problem

Use dUserSetFLOAT

dUserSetFLOAT(PlayerName2(playerid)).("X",CarInfo[IsOwner[vehicleid]][CarX]);

dUserFLOAT(PlayerName2(playerid)).("X");
Forum: Scripting Help 18/02/2012, 11:53 AM
Replies: 6
Views: 707
Posted By dice7
Re: suggestion check

Print out the inputtext to see if it holds the suggestion. If It's the same as the text you entered in the dialog, then It's a problem with your database
Forum: Scripting Help 17/02/2012, 11:30 PM
Replies: 4
Views: 947
Posted By dice7
Re: Problem | With Random

new RangeActions[][] = {"RangeAction1","RangeAction2","RangeAction3","RangeAction4","RangeAction5"};
Forum: Scripting Help 17/02/2012, 11:23 PM
Replies: 6
Views: 707
Posted By dice7
Re: suggestion check

Show the part where you store the suggestions (INSERT INTO ...)
Forum: Scripting Help 16/02/2012, 11:41 PM
Replies: 13
Views: 1,240
Posted By dice7
Re: What am I doing wrong?

The strcmp is fine. Do this

SendClientMessage(playerid, 0xAAAAAA, vehInfo[v][Owner]);
if(strcmp(vehInfo[v][Owner], p_Name, false) == 0)

to check if the string is not empty. If it is, then...
Forum: Scripting Help 16/02/2012, 05:17 PM
Replies: 3
Views: 919
Posted By dice7
Re: OnPlayerText question

The maximum length of 'text' is 128, since you can't type more characters than 128 in the chat box at once
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 09:13 PM.


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