SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 349
Search took 0.02 seconds.
Search: Posts Made By: UFF
Forum: Scripting Help 10/03/2019, 06:04 AM
Replies: 4
Views: 240
Posted By UFF
Re: How to see other player stats?

CMD:stats(playerid, params[])
{

new oplayerid;
if(sscanf(params, "u", oplayerid)
{
ShowStats(playerid);
}
else
{
Forum: Scripting Help 10/03/2019, 05:55 AM
Replies: 12
Views: 369
Posted By UFF
Re: How is this text called?

There are only 4 styles in GameText other than those are textdraws.
https://wiki.sa-mp.com/wiki/GameTextStyle
Forum: Scripting Help 09/03/2019, 04:49 PM
Replies: 12
Views: 369
Posted By UFF
Re: How is this text called?

What you mean by "I just wanted to know are this textdraws or gametexts"?
Forum: Scripting Help 09/03/2019, 10:45 AM
Replies: 3
Views: 194
Posted By UFF
Re: Error: Unmatched Tilde

Show your textdraw code or try to increase the string size!
Forum: Scripting Help 09/03/2019, 08:36 AM
Replies: 12
Views: 369
Posted By UFF
Re: How is this text called?

That is a textdraw!
Forum: Scripting Help 08/03/2019, 04:00 PM
Replies: 1
Views: 118
Posted By UFF
Re: GetPlayerPos help

You have to use float datatype instead of int datatype.


mysql_format(mysql, szQuery, 256, "UPDATE `jobs` SET `PosX` = '%0.2f' , `PosY` = '%0.2f' , `PosZ` = '%0.2f' WHERE `ID` = '%d'", X, Y, Z,...
Forum: Scripting Help 18/02/2019, 05:19 AM
Replies: 5
Views: 209
Posted By UFF
Re: Textdraw Message help

#include <a_samp>

new Text:Textdrawdot;
new Text:Textdrawname;
new AutoMessageNum = 0;

public OnFilterScriptInit()
{
Textdrawname = TextDrawCreate(243.500000, 404.250000,...
Forum: Scripting Help 04/02/2019, 05:19 AM
Replies: 2
Views: 239
Posted By UFF
Re: Dynamic3DTextLabel not destroying

it should be Delete3DTextLabel since you aren't creating a CreateDynamic3DTextLabal.

if(PointInfo[id][point_text] != -1)
{
Delete3DTextLabel(PointInfo[id][point_text]);
}
Forum: Scripting Help 30/01/2019, 03:23 PM
Replies: 4
Views: 184
Posted By UFF
Re: Help TD

new string[256];
if(CosminInfo[playerid][GangID] == 0)
{
format(string, sizeof string, "{F81414}None");
}
else format(string, sizeof string, "%s",...
Forum: Scripting Help 08/01/2019, 04:23 AM
Replies: 8
Views: 1,222
Posted By UFF
Re: House system

CreateHouse("House 1", 35000 ,-3724.7620, -1651.9816, 4.4582, 442.8380, 508.8443, 1000.3121, 1, 25000);//1795
Forum: Scripting Help 26/12/2018, 03:29 PM
Replies: 8
Views: 230
Posted By UFF
Re: GameModeTextShowForPlayer question

new timercount[MAX_PLAYERS] = 0;

//In the command
time[targetid] = 3600000;
timercount[targetid] = SetTimerEx("CountTimer", 1000, true, "i", targetid);


//function
forward...
Forum: Scripting Help 24/12/2018, 06:20 AM
Replies: 6
Views: 240
Posted By UFF
Re: Very new to scripting please don't be too mean xD

CMD:setskin(playerid, params[])
{
new targetid, skinid, str[90], name[MAX_PLAYER_NAME];
if(sscanf(params, "ii", targetid, skinid))
return SendClientMessage(playerid, -1,...
Forum: Scripting Help 24/12/2018, 03:31 AM
Replies: 1
Views: 140
Posted By UFF
Re: Command Jail some help

make a column in your users table like jailed and update it to 1 when you jail a player.

Under your userdataload, load the column data and under OnPlayerSpawn callback check whether the player is...
Forum: Scripting Help 18/12/2018, 04:45 AM
Replies: 1
Views: 151
Posted By UFF
Re: [HELP]Script Teleport and Textdraw

Create Textdraw using textdraw editor - https://forum.sa-mp.com/showthread.php?t=442095

Create the textdraw as global. Now after creating the textdraw.

1) Place the textdraw Under...
Forum: Scripting Help 16/12/2018, 06:43 AM
Replies: 9
Views: 423
Posted By UFF
Re: HELP

Check this
https://forum.sa-mp.com/showthread.php?t=256961
Forum: Scripting Help 16/12/2018, 06:15 AM
Replies: 4
Views: 263
Posted By UFF
Re: How Many Objects?

There will be no issues. Use CreateDynamicObject.
Forum: Scripting Help 16/12/2018, 06:11 AM
Replies: 9
Views: 423
Posted By UFF
Re: HELP

new Text:Textdraw1;

Place this global at top.
Forum: Scripting Help 16/12/2018, 06:02 AM
Replies: 9
Views: 423
Posted By UFF
Re: HELP

Place the textdraw in OnGamemodeInit and show the textdraw in OnPlayerConnect.


public OnGamemodeInit()
{
Textdraw1 = TextDrawCreate(503.000000, 113.000000, "--");...
Forum: Scripting Help 16/12/2018, 05:46 AM
Replies: 9
Views: 423
Posted By UFF
Re: HELP

Yes, it is.
Forum: Scripting Help 15/12/2018, 10:08 AM
Replies: 11
Views: 306
Posted By UFF
Re: Create Actor

Show the whole script.(pastebin link)
Forum: Scripting Help 15/12/2018, 03:33 AM
Replies: 9
Views: 423
Posted By UFF
Re: HELP

new PlayersInMG = 0; // PlayersInMG will be your players count in minigun game and should be used in the textdraw

// In Command
CMD:minigun(playerid)
{

//When Player join minigun...
Forum: Scripting Help 14/12/2018, 06:02 AM
Replies: 11
Views: 306
Posted By UFF
Re: Create Actor

A gamemode will have public OnGameModeInit() callback. You maybe using filterscript (public OnFilterScriptInit()). If yes, then create actor under public OnFilterScriptInit().
Forum: Tools and Files 08/12/2018, 03:51 PM
Replies: 17
Views: 3,201
Posted By UFF
Forum: Scripting Help 08/12/2018, 03:33 PM
Replies: 2
Views: 140
Posted By UFF
Re: HELP!

Try setting player interior to 0 when player exit from the business.

SetPlayerInterior(playerid, 0);
Forum: Scripting Help 07/12/2018, 09:59 AM
Replies: 7
Views: 259
Posted By UFF
Re: Not saving stats [MYSQL]

try this

public OnPlayerDisconnect(playerid, reason)
{
new query[800], Float:pos[4];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
GetPlayerFacingAngle(playerid, pos[3]);
...
Showing results 1 to 25 of 349

 

All times are GMT. The time now is 01:44 AM.


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