Zcmd /get
#1

http://forum.sa-mp.com/showthread.ph...60#post1151360
Reply
#2

1.
pawn Код:
CMD:get( playerid, params[ ] ) {
    new id = strval( params );
    if( !isnull( params ) ) return SendClientMessage( playerid, 0xAAAAAA, "USAGE: /get [ID]" );
    if( id == INVALID_PLAYER_ID ) return SendClientMessage( playerid, 0xAAAAAA, "Invalid ID" );
    new Float:x, Float:y, Float:z; GetPlayerPos( playerid, x, y, z ); return SetPlayerPos( id, x, y, z );
}
2. wiki.sa-mp.com/wiki/GameTextForPlayer
Reply
#3

How I can do this:


I have a report system which opens a dialog box, if I add at the last GetPlayer it'll be the case 8, So If I Press it get the player to me:


pawn Код:
case 8:
                {
               
                     new Float:x, Float:y, Float:z; GetPlayerPos( playerid, x, y, z ); return SetPlayerPos( id, x, y, z );
               
                }
pawn Код:
../include/admincommands.inc.pwn(915) : error 017: undefined symbol "id"
../include/admincommands.inc.pwn(958) : error 017: undefined symbol "params"
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)