[Pedido] gps
#3

PHP код:
/******************************************************************************
 *                                                                            *
 * Copyright © Fуrum SA-MP                                                  *
 *                                                                            *
 ******************************************************************************/
#include <a_samp>
#define FILTERSCRIPT
#include <zcmd>
#include <sscanf2>
public OnPlayerEnterCheckpoint(playerid)
{
    
SendClientMessage(playerid, -1"Vocк chegou em seu destino! (/gps)");
    
DisablePlayerCheckpoint(playerid);
    return 
1;
}
stock Nome(playerid)
{
    new 
Name[MAX_PLAYERS];
    
GetPlayerName(playeridNamesizeof(Name));
    return 
Name;
}
    
CMD:gps(playeridparams[])
    {
        new 
String[128], IDFloat:XFloat:YFloat:Z;
        
GetPlayerPos(IDXYZ);
        if(
sscanf(params"u"ID)) return SendClientMessage(playerid, -1"Digite: /gps <id>");
        if(!
IsPlayerConnected(ID)) return SendClientMessage(playerid, -1"[ERRO] Jogador nгo conectado!");
        
format(Stringsizeof(String), "Foi marcado um checkpoint no jogador: (%d) %s"IDNome(ID));
        
SendClientMessage(playerid, -1String);
        
SetPlayerCheckpoint(playeridXYZ5.0);
        return 
1;
    } 
Reply


Messages In This Thread
gps - by vitere - 23.10.2012, 22:20
Re: gps - by leandro123456 - 23.10.2012, 22:26
Re: gps - by Ouro - 23.10.2012, 22:36
Re: gps - by vitere - 23.10.2012, 22:50
Re: gps - by Ouro - 23.10.2012, 22:56
Re: gps - by vitere - 23.10.2012, 23:08
Re: gps - by leandro123456 - 23.10.2012, 23:45

Forum Jump:


Users browsing this thread: 3 Guest(s)