Do this? spec only this player. -
gamersx - 17.02.2017
Hello, i need help in this. I have it almost all, the last thing i'm needing its, i have a tv system, its almost finished but i need this.
I made this command
pawn Код:
CMD:vertelevision(playerid, params[])
{
new userID;
if(camarografo[playerid] == 0) return SendClientMessage(playerid, -1, "LSTV NEWS, Todavнa no estamos en vivo!");
if(sscanf(params, "u", userID)) return SendClientMessage(playerid, -1, "/vertelevisiуn [playerid]");
if(!IsPlayerConnected(userID)) return SendClientMessage(playerid, -1, "* No conectado.");
if(Info[playerid][pTvportatil] == 0) return SendClientMessage(playerid, COLOR_WHITE, "* No tienes una televisiуn portatil, consigue una en una Tienda de Electrуnica.");
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][0]);//To Show
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][1]);//To Show
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][2]);//To Show
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][3]);//To Show
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][4]);//To Show
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][5]);//To Show
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][6]);//To Show
PlayerTextDrawShow(playerid, TDEditor_PTD[playerid][7]);//To Show
SetPlayerInterior(playerid, GetPlayerInterior(userID));
SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(userID));
AttachObjectToPlayer(FPS2[userID], userID, 0.0, 0.15, 0.65, 0.0, 0.0, 0.0);
AttachCameraToObject(playerid, FPS2[userID]);
return 1;
}
This means that when you write /vertelevision, you can now see another player camera like a spectate function, but i want this.
When the player of the faction " CNN NEWS ".
pawn Код:
zcmd(acamara, playerid, params[])
{
if(!Team_LSTV(playerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "No formas parte de LSTV.");
{
if(IsPlayerInRangeOfPoint(playerid, 2.0,2013.0183,-1282.8282,23.9762))
SendClientMessageEx(playerid, COLOR_WHITE, "{FF8000}[LSTV NEWS]{FFFFFF}Agarraste la camara,ahora pueden verte en un televisor.!");
for(new i = 0; i < MAX_PLAYERS; i++)
{
camarografo[i] = true;
}
}
return 1;
}
So when the player from cnn news, wrote this. They can only use /vertelevision or "watchtv", only in this player.
I mean i want to when you write /vertelevision, goes automatically to the player who wrote "/acamara".
If someone understoond what i said, thanks for reading and helping. I'm asking this because i dont know how to do it. I only need this and i will have it all complete. Thanks.
Re: Do this? spec only this player. -
Sew_Sumi - 17.02.2017
Why post multiple threads asking about the same thing?
Should keep it to the other thread.
Re: Do this? spec only this player. -
gamersx - 17.02.2017
I solved it!, but this is another thing. Read the thread -.-
Re: Do this? spec only this player. -
Sew_Sumi - 17.02.2017
Quote:
Originally Posted by gamersx
I solved it!, but this is another thing. Read the thread -.-
|
It's very much related.