/blindfold
#15

I put together this command below (Using some of the info from this post) and I have a problem.
When I use it on another player, it always blind folds myself.
How can I make it blind fold the player I want it to?
thx in advance

Код:
//--------------------[BlindFold]------------------------------------------------------------------------
  if(strcmp(cmd, "/blindfold", true) == 0)
  {
    if(IsPlayerConnected(playerid))

	tmp = strtok(cmdtext, idx);
	if(!strlen(tmp))
	  {
		SendClientMessage(playerid, COLOR_GRAD1, "USAGE: //blindfold [player name]");
		return 1;
        }
    SetPlayerCameraPos(playerid, -833.5241,-1358.8575,86.9054);
    SetPlayerCameraLookAt(playerid, -830.8118,-1360.3612,87.0289);
    return 1;
    }

  if(strcmp(cmd, "/unblindfold", true) == 0)
  {
	 if(IsPlayerConnected(playerid))

	 tmp = strtok(cmdtext, idx);
     if(!strlen(tmp))
	 {
         SendClientMessage(playerid, COLOR_GRAD1, "USAGE: //unblindfold [player name]");
		 return 1;
         }
  SetCameraBehindPlayer(playerid);
  return 1;
 }
Same Thing (Just Quoted)
Quote:

//--------------------[BlindFold]------------------------------------------------------------------------
if(strcmp(cmd, "/blindfold", true) == 0)
{
if(IsPlayerConnected(playerid))

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: //blindfold [player name]");
return 1;
}
SetPlayerCameraPos(playerid, -833.5241,-1358.8575,86.9054);
SetPlayerCameraLookAt(playerid, -830.8118,-1360.3612,87.0289);
return 1;
}

if(strcmp(cmd, "/unblindfold", true) == 0)
{
if(IsPlayerConnected(playerid))

tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: //unblindfold [player name]");
return 1;
}
SetCameraBehindPlayer(playerid);
return 1;
}

Reply


Messages In This Thread
/blindfold - by Pujan2008 - 03.04.2008, 07:21
Re: /blindfold - by MidoBan - 03.04.2008, 07:37
Re: /blindfold - by yom - 03.04.2008, 07:38
Re: /blindfold - by MidoBan - 03.04.2008, 07:42
Re: /blindfold - by swayam - 03.04.2008, 08:23
Re: /blindfold - by MidoBan - 03.04.2008, 08:29
Re: /blindfold - by swayam - 03.04.2008, 09:36
Re: /blindfold - by MidoBan - 03.04.2008, 09:48
Re: /blindfold - by cmg4life - 03.04.2008, 11:16
Re: /blindfold - by Exuro - 03.04.2008, 13:57
Re: /blindfold - by Sandra18[NL] - 03.04.2008, 14:08
Re: /blindfold - by Exuro - 03.04.2008, 14:28
Re: /blindfold - by Tr1viUm - 03.04.2008, 14:34
Re: /blindfold - by Carlos_Leone - 03.04.2008, 14:44
Re: /blindfold - by Saorp - 07.04.2008, 04:43
Re: /blindfold - by Joe Staff - 07.04.2008, 05:17
Re: /blindfold - by Cueball - 07.04.2008, 05:22
Re: /blindfold - by Joe Staff - 07.04.2008, 05:27
Re: /blindfold - by Giacomand - 07.04.2008, 06:20
Re: /blindfold - by Saorp - 08.04.2008, 04:54
Re: /blindfold - by Cueball - 08.04.2008, 05:42
Re: /blindfold - by Saorp - 08.04.2008, 19:15
Re: /blindfold - by kavkazian - 09.04.2008, 20:07
Re: /blindfold - by Pujan2008 - 09.04.2008, 21:08
Re: /blindfold - by Pghpunkid - 10.04.2008, 00:28
Re: /blindfold - by kavkazian - 10.04.2008, 09:19
Re: /blindfold - by yom - 10.04.2008, 09:22
Re: /blindfold - by kavkazian - 10.04.2008, 10:11
Re: /blindfold - by Cactus - 10.04.2008, 10:34
Re: /blindfold - by yom - 10.04.2008, 11:18
Re: /blindfold - by Joe Staff - 10.04.2008, 12:12
Re: /blindfold - by yom - 10.04.2008, 12:16
Re: /blindfold - by Joe Staff - 10.04.2008, 12:21
Re: /blindfold - by kavkazian - 10.04.2008, 15:28
Re: /blindfold - by Qeux - 11.04.2009, 16:01
Re: /blindfold - by MenaceX^ - 11.04.2009, 16:28

Forum Jump:


Users browsing this thread: 11 Guest(s)