28.02.2011, 18:43
Hi everybody !
I need 3 cmds ...
I have this for /get :
But if i type: /get , /get 1, /get 2 ...
It always says:
You have teleproted Michael@Belgium to your location
You have been teleported to administrator Michael@Belgium's positions
And for the /(un)jail ... I DON'T FIND IT (in strcmp format !!)
PLZ HELP ;p
I need 3 cmds ...
I have this for /get :
pawn Код:
if( !strcmp( "/get", cmdtext, true, 4 ) )
{
if( !IsPlayerAdmin( playerid ) )
return 0;
new Index;
tmp = strtok( cmdtext, Index );
new giveplayerid = strval( tmp );
if( !IsPlayerConnected( giveplayerid ) )
return SendClientMessage( playerid, 0xAAAAAA, "Player not connected" );
if( !strlen( tmp ) )
return SendClientMessage( playerid, 0xAAAAAA, "USAGE: /get [ID]");
new Float:x, Float:y, Float:z;
GetPlayerPos( playerid, x, y, z );
SetPlayerPos( giveplayerid, x, y, z );
new string[ 128 ];
new pName[ 24 ], aName[ 24 ];
GetPlayerName( playerid, aName, 24 );
GetPlayerName( giveplayerid, pName, 24 );
format( string, sizeof string, "You have teleported %s to your location", pName );
SendClientMessage( playerid, 0xAAAAAA, string );
format( string, sizeof string, "You have been teleported to administrator %s's position", aName );
return SendClientMessage( giveplayerid, 0xAAAAAA, string );
}
It always says:
You have teleproted Michael@Belgium to your location
You have been teleported to administrator Michael@Belgium's positions
And for the /(un)jail ... I DON'T FIND IT (in strcmp format !!)
PLZ HELP ;p