SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: clarencecuzz
Forum: Scripting Help 10/11/2012, 05:32 AM
Replies: 5
Views: 616
Posted By clarencecuzz
Re: NEED URGENT HELP!

Try this for starters:
public OnVehicleSpawn(vehicleid)
{
new engine, lights, alarm, doors, bonnet, boot, objective;
GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet,...
Forum: Scripting Help 10/11/2012, 05:26 AM
Replies: 9
Views: 1,116
Posted By clarencecuzz
Re: House Problem[Delete All Pickups]

Try replacing:
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

With:
AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX],...
Forum: Scripting Help 10/11/2012, 05:16 AM
Replies: 5
Views: 616
Posted By clarencecuzz
Re: NEED URGENT HELP!

CMD:engine(playerid, params[])
{
new engine, lights, alarm, doors, bonnet, boot, objective, vehicleid, string[128];
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return...
Forum: Scripting Help 05/10/2012, 08:16 PM
Replies: 5
Views: 695
Posted By clarencecuzz
Re: Server log errors !

Can you show your OnPlayerStateChange callback?
Forum: Scripting Help 05/10/2012, 08:13 PM
Replies: 10
Views: 1,282
Posted By clarencecuzz
Re: Admin duty not workng

This should work. Give it a shot.

COMMAND:admins(playerid, params[])
{
if(IsPlayerLogged[playerid] == 1)
{
new count = 0;
SendClientMessage(playerid, COLOR_IORANGE, "Online...
Forum: Scripting Help 05/10/2012, 08:07 PM
Replies: 14
Views: 1,446
Posted By clarencecuzz
Re: Mask Problem

Give this a shot.
if(strcmp(cmdtext, "/mask", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
if(PlayerInfo[playerid][pMaskuse] == 1)
...
Forum: Scripting Help 27/09/2012, 12:18 AM
Replies: 4
Views: 675
Posted By clarencecuzz
Re: Die outside the vehicle

On a timer:
public OnGameModeInit() //Or OnFilterScriptInit()
{
SetTimer("CarTimer", 1000, true);
return 1;
}

forward CarTimer();
public CarTimer()
{
Forum: Scripting Help 26/09/2012, 01:16 AM
Replies: 1
Views: 498
Posted By clarencecuzz
Re: error 010: invalid function or declaration

Extra bracket at the end? xD
Forum: Scripting Help 26/09/2012, 12:54 AM
Replies: 5
Views: 726
Posted By clarencecuzz
Re: Health set

Try it now...
if(issuerid != INVALID_PLAYER_ID)
{
if(weaponid == 34)
{
new Float:health;
GetPlayerHealth(playerid, health); //We're saving it to our new...
Forum: Scripting Help 26/09/2012, 12:49 AM
Replies: 10
Views: 1,125
Posted By clarencecuzz
Re: Robbank System Help

Try this one:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>

new robbing[MAX_PLAYERS];
new...
Forum: Scripting Help 26/09/2012, 12:43 AM
Replies: 2
Views: 538
Posted By clarencecuzz
Re: PlayAudioStreamForPlayer

I would recommend you use it just in case the audio somehow doesn't stop streaming.
Forum: Scripting Help 26/09/2012, 12:33 AM
Replies: 1
Views: 537
Posted By clarencecuzz
Re: [VIP] Tag

This is a rough estimate of how it should work. If there's any mistakes, give me some slack because I did it on notepad instead of pawno.

public OnGameModeInit() //or OnFilterScriptInit for...
Forum: Scripting Help 25/09/2012, 11:55 PM
Replies: 4
Views: 693
Posted By clarencecuzz
Re: Re : How to get this ...

Obviously they want to get the X and Y coordinates of the textdraw and use it in printf.

Example:
printf("Textdraw | X = %.2f, Y = %.2f",X, Y);

Credits to Nero_3D:
stock Float:...
Forum: Scripting Help 25/09/2012, 07:32 AM
Replies: 14
Views: 2,187
Posted By clarencecuzz
Re: INI_ParseFIle not working? [Rep+4]

It was included in the first post of the thread.
forward LoadHouse_data(houseid,name[],value[]);
public LoadHouse_data(houseid,name[],value[])
{
...
Forum: Scripting Help 25/09/2012, 06:54 AM
Replies: 14
Views: 2,187
Posted By clarencecuzz
Re: INI_ParseFIle not working? [Rep+4]

Okay guys, well I have managed to fix the login system etc., but I am still confused about why my houses aren't loading properly. The labels and pickups are being created, but for some reason it's...
Forum: Scripting Help 25/09/2012, 06:41 AM
Replies: 4
Views: 677
Posted By clarencecuzz
Re: Pawno crashes for this code ? +REP Given!

I have a feeling it is because the input line is too long. Try this:
#define ShowTutStepThreeDialog((%1),(%2)) \
ShowPlayerDialog((%1), (%2), DIALOG_STYLE_MSGBOX, "{00FF00}Factions -...
Forum: Scripting Help 25/09/2012, 06:38 AM
Replies: 5
Views: 632
Posted By clarencecuzz
Re: Pikcup help

http://wiki.sa-mp.com/wiki/Create3DTextLabel

This??

For color embedding help see this:
http://wiki.sa-mp.com/wiki/Colors
Forum: Scripting Help 25/09/2012, 06:35 AM
Replies: 22
Views: 1,536
Posted By clarencecuzz
Re: Command HELP

STRCMP
new PlayerAFK[MAX_PLAYERS]; //At the top of your script
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/afk", true) == 0)
{
if(PlayerAFK[playerid]...
Forum: Scripting Help 25/09/2012, 06:24 AM
Replies: 5
Views: 632
Posted By clarencecuzz
Re: Pikcup help

Click HERE (http://wiki.sa-mp.com/wiki/CreatePickup) to see the actual syntax of CreatePickup, and realise that you're missing a parameter.

Click HERE (http://wiki.sa-mp.com/wiki/PickupTypes) to...
Forum: Scripting Help 25/09/2012, 01:33 AM
Replies: 7
Views: 1,494
Posted By clarencecuzz
Re: SetPlayerAttachedObject Not showing object ?

Definitely.
else {
if(IsPlayerAttachedObjectSlotUsed(playerid,0)){
RemovePlayerAttachedObject(playerid,0);
}
}
}
...
Forum: Scripting Help 25/09/2012, 01:08 AM
Replies: 5
Views: 699
Posted By clarencecuzz
Re: - Help with Enter/Exit Command.

Neither of them had values being returned, the poster of the thread just didn't include it. Although he had return 1 in his OnPlayerCommandText, he wasn't considering if people were only going to...
Forum: Scripting Help 25/09/2012, 01:05 AM
Replies: 7
Views: 1,494
Posted By clarencecuzz
Re: SetPlayerAttachedObject Not showing object ?

No, because then if you already had an object attached, it would never spawn the vest...

CMD:attachvest(playerid,params[])
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 0))
{
...
Forum: Scripting Help 24/09/2012, 11:24 PM
Replies: 5
Views: 699
Posted By clarencecuzz
Re: - Help with Enter/Exit Command.

Did you even read what the problem was?

Change this:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/enter", true))
{
...
Forum: Scripting Help 24/09/2012, 11:20 PM
Replies: 7
Views: 1,494
Posted By clarencecuzz
Re: SetPlayerAttachedObject Not showing object ?

CMD:attachvest(playerid,params[])
{
if(IsPlayerAttachedObjectSlotUsed(playerid, 0))
{
RemovePlayerAttachedObject(playerid, 0);
}
SetPlayerAttachedObject(playerid, 0,...
Forum: Scripting Help 24/09/2012, 09:55 PM
Replies: 5
Views: 726
Posted By clarencecuzz
Re: Health set

Syntax for GetPlayerHealth:
GetPlayerHealth(playerid, Float:&Health);

You need to save the parameter 'Health' to another variable like so.
if(issuerid != INVALID_PLAYER_ID && weaponid == 34)
{...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:04 AM.


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