|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Jul 2012
Location: Shadows
Posts: 86
Reputation: 41
|
Hello all,
I need to make a command in which that command works only with specified name. For example that specified name is Kalroz. Can anyone create that? It's urgent. |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Mar 2012
Location: Earth
Posts: 1,833
Reputation: 469
|
if(GetPlayerName(playerid,Kalroz));
I think we must use like this ^ But IM NOT SURE. |
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2012
Location: Land of Ooo
Posts: 2,255
Reputation: 238
|
^^ No wrong use strcmp like this
pawn Code:
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2010
Location: INDIA !!! :)) Punjab
Posts: 1,079
Reputation: 107
|
lol?
you should use strcmp like pawn Code:
|
|
|
|
|
|
#5 | |
|
Gangsta
Join Date: Jul 2010
Location: Australia
Posts: 940
Reputation: 89
|
Quote:
if(strcmp(...,...,...) == 0) is the same as !strcmp... @Romel, you have strcmp(...,...,TRUE) == 0. This means that your have ignorecase enabled, which means a player can enter the server with the name KaLRoZ and still be accepted... must be set to false in this instance. |
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get the Name of Player used some Command? | Saw® | Scripting Help | 6 | 05/09/2011 11:14 PM |
| Slap command returns an Unknown Command when player is not connected | HydraX | Help Archive | 16 | 01/08/2011 05:19 AM |
| player command | farris | Help Archive | 1 | 09/09/2010 12:56 AM |
| Command for near Player | HardstylerNiko | Help Archive | 3 | 05/09/2010 10:08 AM |
| Player to Player /sendcash command?? | sheepondrugs | Help Archive | 4 | 17/08/2010 05:19 PM |