01.05.2015, 20:44
Usa o plugin streamer pra isso, vou te dar um EXEMPLO:
PHP код:
#include streamer
new check_motorista;
public OnGameModeInit()
{
check_motorista = CreateDynamicCP(PosX, PosY, PosZ, 2, -1, -1, -1, 100.0);
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == check_motorista)
{
SendClientMessage(playerid, -1, "Digite /sermotorista para pegar a profissгo.");
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/sermotorista", cmdtext, true, 10) == 0)
{
if(!PlayerToPoint(2.0, playerid, PosX, PosY, PosZ)) return SendClientMessage(playerid, -1, "Vocк nгo pode utilizar este comando aqui!");
// funзoes
return 1;
}
return 0;
}
// Altere as cordenadas