SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Old 16/05/2018, 06:46 PM   #1
Big Clucker
Join Date: Sep 2017
Posts: 105
Reputation: 20
Default Help me

I code this code for Cops in my server. And I do not know how to make this code a part. As I typed this command it will appear on the [Fatty Key and it will automatically load [5, 4, 3, 2, 1] . It is the same as when you type the [server maintenance] command, it will show the letters and numbers.
PHP Code:
PlayerInfo[playerid][pDuty] && IsACop(playerid))
//SendClientMessageEx(playerid, COLOR_RED, "* Listing all gates within 5 meters of you...");
for(new iFloatfGatePos[3], gateidstring[128], szMessage[32]; MAX_GATESi++)
GetDynamicObjectPos(GateInfo[i][gGATE], fGatePos[0], fGatePos[1], fGatePos[2]);
IsPlayerInRangeOfPoint(playerid5fGatePos[0], fGatePos[1], fGatePos[2]))
GateInfo[i][gModel] != 0)
//format(szMessage, sizeof(szMessage), "Gate ID %d (VW: %d)", i, GateInfo[i][gVW]);
//format(string,sizeof(string),"|___________ Password Gate (ID: %d) ___________|", gateid);
                    //format(string, sizeof(string), "PassWord Gate: %s", GateInfo[i][gPass]);

SendClientMessageEx(playeridCOLOR_GRAD2"Ban khong phai la nhan vien nha nuoc.");

My job
Study map editing at
Development of maps for SAMP Vietnamese
BanhVo is offline   Reply With Quote
Old 17/05/2018, 05:40 AM   #2
GTLS's Avatar
Join Date: Aug 2014
Location: India
Posts: 884
Reputation: 92
Default Re: Help me

You mean you want a countdown to be shown?
PHP Code:
new 1str[5];
format(strsizeof(str), "%d"i);
SendClientMessage(playerid, -1str); 


I don't help for rep. I help cuz I was helped in the past.

Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
GTLS is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

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

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