28.05.2016, 12:16
Use strcmp to check the player-name.
Setting the last parameter to 4 means that only the first 4 characters will be compared.
Define your object and then use MoveDynamicObject (for Streamer) to move it:
Setting the last parameter to 4 means that only the first 4 characters will be compared.
Код:
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
if (strcmp(name, "[BD]", true, 4))
{
// Do code here
}
Код:
MoveDynamicObject(objectid, Float:x, Float:y, Float:z, Float:speed, Float:rx, Float:ry, Float:rz);

