First person mode
#1

So i found this neat command:

if (strcmp("/firstperson", cmdtext, true, 10) == 0)
{
firstperson[playerid] = CreateObject(19300, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
AttachObjectToPlayer(firstperson[playerid],playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
AttachCameraToObject(playerid, firstperson[playerid]);
SendClientMessage(playerid,-1,"Note: Use /exitfirstperson to return to normal.");
return 1;
}

The problem is i'm using the streamer plugin and there isn't AttachDynamicObjectToPlayer.

What do i do? Or do i just leave it like this and it will be okay?
Reply
#2

If there isn't a function like this to Incognito's plugin, then you should use it as it is. Just a note though, "/firstperson" has a lenght of 12, not 10 chars. However, it's optional but it's better not to use it at all instead of using it with a wrong way! Just:
pawn Код:
if(!strcmp(cmdtext, "/firstperson", true))
Reply
#3

Okay, thanks. I'm not using strcmp anyway.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)