SA-MP Forums

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

 
 
Thread Tools Display Modes
Old 09/09/2010, 12:40 AM   #1
farris
Big Clucker
 
Join Date: Jul 2010
Posts: 87
Reputation: 0
Default player command

im trying to build a command to work for crtain players this is whati got but it works for everyone
if(strcmp(cmd, "/gir", true) == 0)
{
if(strcmp(PlayerName(playerid), "Anna_Cortez", true) != 0)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
SetVehiclePos(xxannajpxx, x, y, z+2);

}
else SendClientMessage(playerid, LIGHTBLUE, "You are not a high enough Admin!");
return 1;
}
farris is offline  
Old 09/09/2010, 12:56 AM   #2
iggy1
High-roller
 
iggy1's Avatar
 
Join Date: Mar 2009
Location: One past the end.
Posts: 2,383
Reputation: 235
Default Re: player command

use
pawn Code:
if(!strcmp(PlayerName(playerid), "Anna_Cortez" ))
__________________
Quote:
Originally Posted by Y_Less
That code compiles perfectly, but I can tell you now it won't make me a cup of tea.
"No offense, but you are a stupid asshole." - Ron Burgundy
iggy1 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
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
I want to know that if I want to make a command that when a player trying to ge uplovethai Help Archive 2 02/02/2010 01:36 PM
[HELP]Player can not go out vehicle command breakpaper Help Archive 0 20/12/2009 10:25 AM


All times are GMT. The time now is 07:20 PM.


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