SA-MP Forums

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

Thread Tools Display Modes
Old 21/09/2010, 02:44 PM   #1
iJumbo's Avatar
Join Date: Sep 2009
Location: HEX 69 74 61 6C 79
Posts: 2,175
Reputation: 136
Default alert

how i can make an alert before the command ? like a player type /buycar and enter then server say remember you spend 500000 for this command ! then player have 2 make it again
iJumbo is offline  
Old 21/09/2010, 02:55 PM   #2
Huge Clucker
Rachael's Avatar
Join Date: Feb 2010
Posts: 380
Reputation: 28
Default Re: alert

using zcmd
pawn Code:
          SendClientMessage(playerid,DEFINED_COLOR,"Buying a car will cost $500,000");
          return 1;
     new cost = strval(params);

.... etc
using OnPlayerCommandText
pawn Code:
cmd = strtok(cmdtext, idx);
     tmp = strtok(cmdtext, idx);
          SendClientMessage(playerid,DEFINED_COLOR,"buying a car will cost $500,000");
          return 1;
      new cost = strval(tmp);
..... etc
Rachael is offline  

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
noob alert My_Waffles_Bitch_L0L Help Archive 9 12/02/2009 05:23 PM

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

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