17.02.2017, 03:08
Hello, im having this trouble and i need a little help.
I made this command to "activate" another.
The thing its this " camarografo[playerid] = 1; " its like an /adminduty. So, when i do this i can use my command that its "/watchtv", but only i can use it, how can i make that this line " camarografo[playerid] = 1; " goes for all the players on the server.
I mean that when i use /acamara, all the players have activated this " camarografo[playerid] = 1; " not only me. Thank you!
Thanks for reading.
I made this command to "activate" another.
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))
{
camarografo[playerid] = 1;
SendClientMessageEx(playerid, COLOR_WHITE, "Agarraste la camara,ahora pueden verte en un televisor.!");
}
}
return 1;
}
I mean that when i use /acamara, all the players have activated this " camarografo[playerid] = 1; " not only me. Thank you!
Thanks for reading.