how do i make as /goto cmd??
#2

Zcmd.
GOTO:
pawn Код:
CMD:goto( playerid, params[ ] )
{
    if( !IsPlayerAdmin( playerid ) )
        return 0;
    new giveplayerid;
    giveplayerid = strval( params );
    if( !strlen( params ) )
        return SendClientMessage( playerid, 0xAAAAAA, "Usage: /GOTO [ID]" );
    if( giveplayerid == INVALID_PLAYER_ID || !IsPlayerConnected( giveplayerid ) )
        return SendClientMessage( playerid, 0xAAAAAA, "Invalid ID" );
    new Float:pos[ 2 ];
    GetPlayerPos( giveplayerid, pos[ 0 ], pos[ 1 ], pos[ 2 ] );
    SetPlayerPos( playerid, pos[ 0 ], pos[ 1 ], pos[ 2 ] );
    new string[ 128 ];
    GetPlayerName( giveplayerid, string, sizeof string );
    format( string, sizeof string, "You have teleported to [%d]%s", giveplayerid, string );
    SendClientMessage( playerid, 0xAAAAAA, string );
    return 1;
}
Reply


Messages In This Thread
how do i make as /goto cmd?? - by [EDT]AmanSingh123 - 25.02.2011, 19:22
Re: how do i make as /goto cmd?? - by Mean - 25.02.2011, 19:32
Re : how do i make as /goto cmd?? - by timaoux - 30.07.2011, 22:50
Re: how do i make as /goto cmd?? - by Kush - 30.07.2011, 23:10
Re: how do i make as /goto cmd?? - by Guest3598475934857938411 - 30.07.2011, 23:17
Re : how do i make as /goto cmd?? - by timaoux - 31.07.2011, 02:22
Re : how do i make as /goto cmd?? - by timaoux - 31.07.2011, 02:25

Forum Jump:


Users browsing this thread: 1 Guest(s)