07.04.2008, 04:43
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
Same Thing (Just Quoted)
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; }
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; } |